Migrate blockinfile to FQCN.
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
## General ##
|
||||
|
||||
- name: General | Account Management | Provisioning Configuration | General | Create
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ gen_file }}"
|
||||
block: |
|
||||
; Please note that all portions require lowercase keys and values.
|
||||
@@ -210,7 +210,7 @@
|
||||
## Workstation ##
|
||||
|
||||
- name: General | Account Management | Provisioning Configuration | Workstation | Create
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ wrk_file }}"
|
||||
block: |
|
||||
;;;;;;; Available options - all require lowercase values ;;;;;;
|
||||
@@ -286,7 +286,7 @@
|
||||
### Miner ##
|
||||
#
|
||||
#- name: General | Account Management | Provisioning Configuration | Miner | Create
|
||||
# blockinfile:
|
||||
# ansible.builtin.blockinfile:
|
||||
# path: "{{ mnr_file }}"
|
||||
# block: |
|
||||
# ;;;;;;; Available options - all require lowercase values ;;;;;;
|
||||
@@ -366,7 +366,7 @@
|
||||
## Server ##
|
||||
|
||||
- name: General | Account Management | Provisioning Configuration | Server | Create
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ srv_file }}"
|
||||
block: |
|
||||
;;;;;;; Parameters ;;;;;;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Create file to easily push git changes and call SCM.
|
||||
|
||||
- name: General | Scripts | Root | scm.sh
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ user_root.home }}/bin/scm.sh"
|
||||
block: |
|
||||
# 20210211 - Make life easier!
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
|
||||
- name: General | Scripts | Root | scm-dev.sh
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ user_root.home }}/bin/scm-dev.sh"
|
||||
block: |
|
||||
# 20210713 - Make life easier for development!
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Create file to easily push git changes and call SCM.
|
||||
|
||||
- name: General | Scripts | User | scm.sh
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ user_user.home }}/bin/scm.sh"
|
||||
block: |
|
||||
# 20210211 - Make life easier!
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
|
||||
- name: General | Scripts | User | scm-dev.sh
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ user_user.home }}/bin/scm-dev.sh"
|
||||
block: |
|
||||
# 20210713 - Make life easier for development!
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
ansible.builtin.shell: "files/scripts/nixos.sh -b {{ branch }}"
|
||||
|
||||
- name: General | Software | NixOS | Create Ansible Nix Config
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: /etc/nixos/ansible.nix
|
||||
block: |
|
||||
# This file was created by https://git.hyperling.com/me/env-ansible
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
when: postfix.failed
|
||||
|
||||
- name: Server | Sendmail | Configure
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: /etc/rc.conf
|
||||
block: |
|
||||
sendmail_enable="YES"
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
### ignore_errors: true
|
||||
###
|
||||
###- name: General | Telegraf | Config 2/2
|
||||
### blockinfile:
|
||||
### ansible.builtin.blockinfile:
|
||||
### path: "{{ telegraf_config }}"
|
||||
### block: |
|
||||
### [global_tags]
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
# CPU #
|
||||
|
||||
- name: Miner | Software | Nanominer | Configuration | CPU | Header Info
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ nanominer_config }}"
|
||||
block: |
|
||||
[{{ item.algorithm }}]
|
||||
@@ -81,7 +81,7 @@
|
||||
# Add Spacing #
|
||||
|
||||
- name: Miner | Software | Nanominer | Configuration | Spacing
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ nanominer_config }}"
|
||||
block: |
|
||||
;
|
||||
@@ -97,7 +97,7 @@
|
||||
# GPU #
|
||||
|
||||
- name: Miner | Software | Nanominer | Configuration | GPU | Header Info
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ nanominer_config }}"
|
||||
block: |
|
||||
[{{ item.algorithm }}]
|
||||
@@ -156,7 +156,7 @@
|
||||
ignore_errors: true
|
||||
|
||||
- name: Miner | Software | Nanominer | Executable | Create
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ nanominer_script }}"
|
||||
block: |
|
||||
# 2021-02-15 - Automate nanominer script creation.
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
state: present
|
||||
|
||||
- name: Workstation | FreeBSD | Software | GUI | Create rc.conf Entries
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ rc_conf }}"
|
||||
marker: "# {mark} MANAGED BY ANSIBLE | GNOME Components"
|
||||
block: |
|
||||
@@ -29,7 +29,7 @@
|
||||
backup: true
|
||||
|
||||
- name: Workstation | FreeBSD | Software | GUI | Create fstab Entries
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: /etc/fstab
|
||||
block: |
|
||||
proc /proc procfs rw 0 0
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
state: present
|
||||
|
||||
- name: Workstation | FreeBSD | Software | GPU Driver | Create rc.conf Entries
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ rc_conf }}"
|
||||
marker: "# {mark} MANAGED BY ANSIBLE | GPU Components"
|
||||
block: |
|
||||
|
||||
@@ -377,7 +377,7 @@
|
||||
## Configure Environment ##
|
||||
|
||||
- name: Workstation | Linux | Software | Android | Modify PATH (.bashrc)
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ item }}/.bashrc"
|
||||
block: |
|
||||
export PATH="$PATH:{{ android_bin_location }}:{{ android_sdk_cmdline_final }}"
|
||||
@@ -394,7 +394,7 @@
|
||||
and user_user.home != ""
|
||||
|
||||
- name: Workstation | Linux | Software | Android | Modify PATH (.zshrc)
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ item }}/.zshrc"
|
||||
block: |
|
||||
export PATH="$PATH:{{ android_bin_location }}:{{ android_sdk_cmdline_final }}"
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
loop: "{{ flatpaks_generic }}"
|
||||
|
||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Generic | Executables
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
||||
block: |
|
||||
{{ item.extra }} {{ flatpak_exec }} {{ item.app }}
|
||||
@@ -135,7 +135,7 @@
|
||||
when: coding
|
||||
|
||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Coding | Executables
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
||||
block: |
|
||||
{{ item.extra }} {{ flatpak_exec }} {{ item.app }}
|
||||
@@ -184,7 +184,7 @@
|
||||
when: editing in (true, "video")
|
||||
|
||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Video Editors | Executables
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
||||
block: |
|
||||
{{ item.extra }} {{ flatpak_exec }} {{ item.app }}
|
||||
@@ -231,7 +231,7 @@
|
||||
when: editing in (true, "audio")
|
||||
|
||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Audio/Video Editors | Executables
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
||||
block: |
|
||||
{{ item.extra }} {{ flatpak_exec }} {{ item.app }}
|
||||
@@ -280,7 +280,7 @@
|
||||
when: gaming
|
||||
|
||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Gaming | Executables
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
||||
block: |
|
||||
{{ item.extra }} {{ flatpak_exec }} {{ item.app }}
|
||||
|
||||
@@ -129,7 +129,7 @@
|
||||
## Configure Environment ##
|
||||
|
||||
- name: Workstation | Linux | Software | Flutter | Modify PATH (.bashrc)
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ item }}/.bashrc"
|
||||
block: |
|
||||
export PATH="$PATH:{{ flutter_bin_location }}"
|
||||
@@ -146,7 +146,7 @@
|
||||
and user_user.home != ""
|
||||
|
||||
- name: Workstation | Linux | Software | Flutter | Modify PATH (.zshrc)
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ item }}/.zshrc"
|
||||
block: |
|
||||
export PATH="$PATH:{{ flutter_bin_location }}"
|
||||
|
||||
@@ -136,7 +136,7 @@
|
||||
when: ansible_service_mgr == "runit"
|
||||
|
||||
- name: Workstation | Linux | Software | TLP | runit | Functions & Aliases
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ item }}"
|
||||
block: |
|
||||
function tlp-devices {
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
# Apply dconf settings through RC files due to distros without working psutil.
|
||||
# Use the command 'dconf watch /' then change settings to see find these values.
|
||||
- name: Workstation | Account Management | Cinnamon | Settings
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ user_user.home }}/{{ item }}"
|
||||
block: |
|
||||
# Disable Cinnamon Settings While Converting From GNOME
|
||||
|
||||
@@ -176,7 +176,7 @@
|
||||
# Apply dconf settings through RC files due to distros without working psutil.
|
||||
# Use the command 'dconf watch /' then change settings to see find these values.
|
||||
- name: Workstation | Account Management | GNOME | Settings
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ user_user.home }}/{{ item }}"
|
||||
block: |
|
||||
## Temporary Variables + Functions ##
|
||||
@@ -440,7 +440,7 @@
|
||||
|
||||
# Remove the dconf settings which had the marker related to NixOS.
|
||||
- name: Workstation | Account Management | GNOME | Settings (NixOS)
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ user_user.home }}/{{ item }}"
|
||||
block: |
|
||||
# TBD: No longer used. Remove in 2027.
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
# https://www.unixmen.com/setup-nfs-server-on-freebsd/
|
||||
- name: Workstation | Settings | NFS | Install (FreeBSD)
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ rc_conf }}"
|
||||
marker: "# {mark} MANAGED BY ANSIBLE | NFS Components"
|
||||
block: |
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
when: ansible_system == "FreeBSD"
|
||||
|
||||
- name: Workstation | Settings | RDP | FreeBSD | Enable
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ rc_conf }}"
|
||||
marker: "# {mark} MANAGED BY ANSIBLE | RDP Components"
|
||||
block: |
|
||||
|
||||
Reference in New Issue
Block a user