Migrate lineinfile to FQCN.

This commit is contained in:
me
2026-10-02 11:19:29 -07:00
parent 1845c8da63
commit 688ee6cb1c
10 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -24,7 +24,7 @@
# when: ansible_pkg_mgr == "pacman" # when: ansible_pkg_mgr == "pacman"
# #
#- name: General | Account Management | Users | Allow ZSH (Arch) #- name: General | Account Management | Users | Allow ZSH (Arch)
# lineinfile: # ansible.builtin.lineinfile:
# path: /etc/shells # path: /etc/shells
# regexp: "{{ zsh_exec.stdout }}" # regexp: "{{ zsh_exec.stdout }}"
# line: "{{ zsh_exec.stdout }}" # line: "{{ zsh_exec.stdout }}"
+1 -1
View File
@@ -3,7 +3,7 @@
# Ensure the correct International AltGr keyboard setting is always chosen. # Ensure the correct International AltGr keyboard setting is always chosen.
- name: General | Settings | Keyboard | Default Config - name: General | Settings | Keyboard | Default Config
lineinfile: ansible.builtin.lineinfile:
path: "/etc/default/keyboard" path: "/etc/default/keyboard"
regexp: '{{ item.key }}' regexp: '{{ item.key }}'
line: '{{ item.value }}' line: '{{ item.value }}'
+1 -1
View File
@@ -21,7 +21,7 @@
create_home: true create_home: true
- name: General | Software | AUR | Sudoers - name: General | Software | AUR | Sudoers
lineinfile: ansible.builtin.lineinfile:
path: "{{ aur_sudoers }}" path: "{{ aur_sudoers }}"
line: "{{ aur_user }} ALL=(ALL) NOPASSWD: /usr/bin/pacman" line: "{{ aur_user }} ALL=(ALL) NOPASSWD: /usr/bin/pacman"
create: true create: true
+2 -2
View File
@@ -28,7 +28,7 @@
## SSHD ## ## SSHD ##
- name: General | Software | Services | SSHD | Configure - name: General | Software | Services | SSHD | Configure
lineinfile: ansible.builtin.lineinfile:
path: "{{ sshd_config }}" path: "{{ sshd_config }}"
regexp: '{{ item.key }}' regexp: '{{ item.key }}'
line: '{{ item.value }} # MANAGED BY ANSIBLE' line: '{{ item.value }} # MANAGED BY ANSIBLE'
@@ -52,7 +52,7 @@
- { "key": '^[\#]?PermitEmptyPasswords', "value": 'PermitEmptyPasswords no'} - { "key": '^[\#]?PermitEmptyPasswords', "value": 'PermitEmptyPasswords no'}
- name: General | Software | Services | SSHD | Configure (PVE) - name: General | Software | Services | SSHD | Configure (PVE)
lineinfile: ansible.builtin.lineinfile:
path: "{{ sshd_config }}" path: "{{ sshd_config }}"
regexp: '{{ item.key }}' regexp: '{{ item.key }}'
line: '{{ item.value }} # MANAGED BY ANSIBLE' line: '{{ item.value }} # MANAGED BY ANSIBLE'
+1 -1
View File
@@ -31,7 +31,7 @@
# NixOS's swap setup is handled in nixos.yml when ansible.nix is created. # NixOS's swap setup is handled in nixos.yml when ansible.nix is created.
- name: General | Software | Swap | Add to FSTAB - name: General | Software | Swap | Add to FSTAB
lineinfile: ansible.builtin.lineinfile:
path: /etc/fstab path: /etc/fstab
regexp: '^[\#]?{{ swap_file }}' regexp: '^[\#]?{{ swap_file }}'
line: '{{ swap_file }} none swap sw 0 0' line: '{{ swap_file }} none swap sw 0 0'
+3 -3
View File
@@ -16,7 +16,7 @@
state: present state: present
- name: Miner | Driver | AMDGPU | Set GRUB Timer - name: Miner | Driver | AMDGPU | Set GRUB Timer
lineinfile: ansible.builtin.lineinfile:
path: /etc/default/grub path: /etc/default/grub
regexp: '^GRUB_TIMEOUT=' regexp: '^GRUB_TIMEOUT='
line: 'GRUB_TIMEOUT=3' line: 'GRUB_TIMEOUT=3'
@@ -77,7 +77,7 @@
when: amdgpu_install.failed and hwe_kernel.stdout != "0" and ga_kernel.failed when: amdgpu_install.failed and hwe_kernel.stdout != "0" and ga_kernel.failed
- name: Miner | Driver | AMDGPU | Prepare GRUB To Boot GA Kernel - name: Miner | Driver | AMDGPU | Prepare GRUB To Boot GA Kernel
lineinfile: ansible.builtin.lineinfile:
path: /etc/default/grub path: /etc/default/grub
regexp: '^GRUB_DEFAULT=' regexp: '^GRUB_DEFAULT='
line: 'GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 5.4.0-65-generic"' line: 'GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 5.4.0-65-generic"'
@@ -126,7 +126,7 @@
# This is to ensure we can test adding `apt install --install-recommends linux-generic` later # This is to ensure we can test adding `apt install --install-recommends linux-generic` later
- name: Miner | Driver | AMDGPU | Boot Default Kernel - name: Miner | Driver | AMDGPU | Boot Default Kernel
lineinfile: ansible.builtin.lineinfile:
path: /etc/default/grub path: /etc/default/grub
regexp: '^GRUB_DEFAULT=' regexp: '^GRUB_DEFAULT='
line: 'GRUB_DEFAULT=0' line: 'GRUB_DEFAULT=0'
+4 -4
View File
@@ -58,7 +58,7 @@
when: nanominer_cpu != false when: nanominer_cpu != false
- name: Miner | Software | Nanominer | Configuration | CPU | Add Pools - name: Miner | Software | Nanominer | Configuration | CPU | Add Pools
lineinfile: ansible.builtin.lineinfile:
path: "{{ nanominer_config }}" path: "{{ nanominer_config }}"
line: "pool{{item.priority}} = {{ item.name }}" line: "pool{{item.priority}} = {{ item.name }}"
state: present state: present
@@ -69,7 +69,7 @@
when: nanominer_cpu != false when: nanominer_cpu != false
- name: Miner | Software | Nanominer | Configuration | CPU | End Section - name: Miner | Software | Nanominer | Configuration | CPU | End Section
lineinfile: ansible.builtin.lineinfile:
path: "{{ nanominer_config }}" path: "{{ nanominer_config }}"
line: ";;;;;;;;;;;;; END CPU" line: ";;;;;;;;;;;;; END CPU"
state: present state: present
@@ -127,7 +127,7 @@
when: nanominer_gpu != false when: nanominer_gpu != false
- name: Miner | Software | Nanominer | Configuration | GPU | Add Pools - name: Miner | Software | Nanominer | Configuration | GPU | Add Pools
lineinfile: ansible.builtin.lineinfile:
path: "{{ nanominer_config }}" path: "{{ nanominer_config }}"
line: "pool{{item.priority}} = {{ item.name }}" line: "pool{{item.priority}} = {{ item.name }}"
state: present state: present
@@ -138,7 +138,7 @@
when: nanominer_gpu != false when: nanominer_gpu != false
- name: Miner | Software | Nanominer | Configuration | GPU | End Section - name: Miner | Software | Nanominer | Configuration | GPU | End Section
lineinfile: ansible.builtin.lineinfile:
path: "{{ nanominer_config }}" path: "{{ nanominer_config }}"
line: ";;;;;;;;;;;;; END GPU" line: ";;;;;;;;;;;;; END GPU"
state: present state: present
+1 -1
View File
@@ -79,7 +79,7 @@
# when: onlyoffice_cert.failed # when: onlyoffice_cert.failed
# #
#- name: Server | OnlyOffice | HTTPS | Modify Config #- name: Server | OnlyOffice | HTTPS | Modify Config
# lineinfile: # ansible.builtin.lineinfile:
# path: /etc/onlyoffice/documentserver/nginx/ds.conf # path: /etc/onlyoffice/documentserver/nginx/ds.conf
# regexp: '{{ item.regexp }}' # regexp: '{{ item.regexp }}'
# line: '{{ item.line }}; # MANAGED BY ANSIBLE' # line: '{{ item.line }}; # MANAGED BY ANSIBLE'
+1 -1
View File
@@ -67,7 +67,7 @@
# NFC and WWAN (cellular) are never used so always disable. # NFC and WWAN (cellular) are never used so always disable.
- name: Workstation | Linux | Software | TLP | Config - name: Workstation | Linux | Software | TLP | Config
lineinfile: ansible.builtin.lineinfile:
path: "{{ tlp_config }}" path: "{{ tlp_config }}"
regexp: '{{ item.key }}' regexp: '{{ item.key }}'
line: '{{ item.value }} # MANAGED BY ANSIBLE' line: '{{ item.value }} # MANAGED BY ANSIBLE'
+2 -2
View File
@@ -20,7 +20,7 @@
when: ansible_system == "FreeBSD" when: ansible_system == "FreeBSD"
- name: Workstation | Settings | RDP | FreeBSD | Enable GNOME - name: Workstation | Settings | RDP | FreeBSD | Enable GNOME
lineinfile: ansible.builtin.lineinfile:
path: /usr/local/etc/xrdp/startwm.sh path: /usr/local/etc/xrdp/startwm.sh
regexp: 'gnome-session' regexp: 'gnome-session'
line: 'exec gnome-session # MANAGED BY ANSIBLE' line: 'exec gnome-session # MANAGED BY ANSIBLE'
@@ -30,7 +30,7 @@
when: ansible_system == "FreeBSD" when: ansible_system == "FreeBSD"
- name: Workstation | Settings | RDP | FreeBSD | Disable xterm - name: Workstation | Settings | RDP | FreeBSD | Disable xterm
lineinfile: ansible.builtin.lineinfile:
path: /usr/local/etc/xrdp/startwm.sh path: /usr/local/etc/xrdp/startwm.sh
regexp: 'xterm' regexp: 'xterm'
line: '#exec xterm # MANAGED BY ANSIBLE' line: '#exec xterm # MANAGED BY ANSIBLE'