diff --git a/tasks/general/acct_mgmt/provision_config.yml b/tasks/general/acct_mgmt/provision_config.yml index 4cdb141..1bc18b0 100644 --- a/tasks/general/acct_mgmt/provision_config.yml +++ b/tasks/general/acct_mgmt/provision_config.yml @@ -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 ;;;;;; diff --git a/tasks/general/scripts/root.yml b/tasks/general/scripts/root.yml index 3960327..16af246 100644 --- a/tasks/general/scripts/root.yml +++ b/tasks/general/scripts/root.yml @@ -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! diff --git a/tasks/general/scripts/user.yml b/tasks/general/scripts/user.yml index bf1828e..2979c40 100644 --- a/tasks/general/scripts/user.yml +++ b/tasks/general/scripts/user.yml @@ -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! diff --git a/tasks/general/software/nixos.yml b/tasks/general/software/nixos.yml index c1607a0..658e65f 100644 --- a/tasks/general/software/nixos.yml +++ b/tasks/general/software/nixos.yml @@ -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 diff --git a/tasks/general/software/sendmail.yml b/tasks/general/software/sendmail.yml index 267bf3a..9630170 100644 --- a/tasks/general/software/sendmail.yml +++ b/tasks/general/software/sendmail.yml @@ -20,7 +20,7 @@ when: postfix.failed - name: Server | Sendmail | Configure - blockinfile: + ansible.builtin.blockinfile: path: /etc/rc.conf block: | sendmail_enable="YES" diff --git a/tasks/general/software/telegraf.yml b/tasks/general/software/telegraf.yml index a8b37e2..4880f50 100644 --- a/tasks/general/software/telegraf.yml +++ b/tasks/general/software/telegraf.yml @@ -76,7 +76,7 @@ ### ignore_errors: true ### ###- name: General | Telegraf | Config 2/2 -### blockinfile: +### ansible.builtin.blockinfile: ### path: "{{ telegraf_config }}" ### block: | ### [global_tags] diff --git a/tasks/miner/software/nanominer.yml b/tasks/miner/software/nanominer.yml index 198777b..db5a750 100644 --- a/tasks/miner/software/nanominer.yml +++ b/tasks/miner/software/nanominer.yml @@ -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. diff --git a/tasks/workstation/freebsd/software/gnome.yml b/tasks/workstation/freebsd/software/gnome.yml index 797f47c..a1b239d 100644 --- a/tasks/workstation/freebsd/software/gnome.yml +++ b/tasks/workstation/freebsd/software/gnome.yml @@ -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 diff --git a/tasks/workstation/freebsd/software/gpu.yml b/tasks/workstation/freebsd/software/gpu.yml index b6f5134..373245c 100644 --- a/tasks/workstation/freebsd/software/gpu.yml +++ b/tasks/workstation/freebsd/software/gpu.yml @@ -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: | diff --git a/tasks/workstation/linux/software/android.yml b/tasks/workstation/linux/software/android.yml index 0838543..c855a68 100644 --- a/tasks/workstation/linux/software/android.yml +++ b/tasks/workstation/linux/software/android.yml @@ -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 }}" diff --git a/tasks/workstation/linux/software/flatpaks.yml b/tasks/workstation/linux/software/flatpaks.yml index 53c28a5..f14bbc1 100644 --- a/tasks/workstation/linux/software/flatpaks.yml +++ b/tasks/workstation/linux/software/flatpaks.yml @@ -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 }} diff --git a/tasks/workstation/linux/software/flutter.yml b/tasks/workstation/linux/software/flutter.yml index 02d0cc9..27fa26f 100644 --- a/tasks/workstation/linux/software/flutter.yml +++ b/tasks/workstation/linux/software/flutter.yml @@ -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 }}" diff --git a/tasks/workstation/linux/software/tlp.yml b/tasks/workstation/linux/software/tlp.yml index 08d5284..8415c0c 100644 --- a/tasks/workstation/linux/software/tlp.yml +++ b/tasks/workstation/linux/software/tlp.yml @@ -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 { diff --git a/tasks/workstation/shared/settings/cinnamon.yml b/tasks/workstation/shared/settings/cinnamon.yml index ac2b0e1..9218a30 100644 --- a/tasks/workstation/shared/settings/cinnamon.yml +++ b/tasks/workstation/shared/settings/cinnamon.yml @@ -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 diff --git a/tasks/workstation/shared/settings/gnome.yml b/tasks/workstation/shared/settings/gnome.yml index a834638..fcc3026 100644 --- a/tasks/workstation/shared/settings/gnome.yml +++ b/tasks/workstation/shared/settings/gnome.yml @@ -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. diff --git a/tasks/workstation/shared/settings/nfs.yml b/tasks/workstation/shared/settings/nfs.yml index 44cab42..e1829a7 100644 --- a/tasks/workstation/shared/settings/nfs.yml +++ b/tasks/workstation/shared/settings/nfs.yml @@ -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: | diff --git a/tasks/workstation/shared/settings/rdp.yml b/tasks/workstation/shared/settings/rdp.yml index ad4521e..86997db 100644 --- a/tasks/workstation/shared/settings/rdp.yml +++ b/tasks/workstation/shared/settings/rdp.yml @@ -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: |