From ab09a74bf24d161e95ea2ecd9eb0e81fc7725252 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Fri, 2 Oct 2026 11:23:02 -0700 Subject: [PATCH] Migrate `file` to FQCN. --- tasks/general/acct_mgmt/provision_config.yml | 2 +- tasks/general/scripts/install.yml | 2 +- tasks/general/scripts/root.yml | 4 ++-- tasks/general/scripts/user.yml | 4 ++-- tasks/general/software/env-shared.yml | 2 +- tasks/general/tests/lock_create.yml | 2 +- tasks/general/tests/lock_remove.yml | 2 +- tasks/general/tests/lynis.yml | 8 ++++---- tasks/general/tests/nmap.yml | 2 +- tasks/general/tests/services.yml | 2 +- tasks/workstation/linux/software/android.yml | 6 +++--- tasks/workstation/linux/software/flatpaks.yml | 20 +++++++++---------- tasks/workstation/linux/software/flutter.yml | 6 +++--- tasks/workstation/linux/software/vpn.yml | 4 ++-- .../workstation/shared/settings/templates.yml | 2 +- tasks/workstation/shared/software/i3.yml | 2 +- 16 files changed, 35 insertions(+), 35 deletions(-) diff --git a/tasks/general/acct_mgmt/provision_config.yml b/tasks/general/acct_mgmt/provision_config.yml index 1bc18b0..e147c02 100644 --- a/tasks/general/acct_mgmt/provision_config.yml +++ b/tasks/general/acct_mgmt/provision_config.yml @@ -14,7 +14,7 @@ srv_file: "{{ prov_dir }}/server.ini" - name: General | Account Management | Provisioning Configuration | Create Directory - file: + ansible.builtin.file: path: "{{ prov_dir }}" state: directory mode: '0755' diff --git a/tasks/general/scripts/install.yml b/tasks/general/scripts/install.yml index 400c3e5..193337f 100644 --- a/tasks/general/scripts/install.yml +++ b/tasks/general/scripts/install.yml @@ -2,7 +2,7 @@ # Copy everything from PROJECT/files/scripts/ to /usr/local/bin/. - name: General | Scripts | Install | Ensure Directory Exists - file: + ansible.builtin.file: path: '{{ global_bin }}' state: directory mode: '0755' diff --git a/tasks/general/scripts/root.yml b/tasks/general/scripts/root.yml index 16af246..b987d75 100644 --- a/tasks/general/scripts/root.yml +++ b/tasks/general/scripts/root.yml @@ -14,7 +14,7 @@ create: true - name: General | Scripts | Root | scm.sh Permissions - file: + ansible.builtin.file: path: "{{ user_root.home }}/bin/scm.sh" mode: '0755' @@ -44,6 +44,6 @@ create: true - name: General | Scripts | Root | scm-dev.sh Permissions - file: + ansible.builtin.file: path: "{{ user_root.home }}/bin/scm-dev.sh" mode: '0755' diff --git a/tasks/general/scripts/user.yml b/tasks/general/scripts/user.yml index 2979c40..63c74e3 100644 --- a/tasks/general/scripts/user.yml +++ b/tasks/general/scripts/user.yml @@ -14,7 +14,7 @@ create: true - name: General | Scripts | User | scm.sh Permissions - file: + ansible.builtin.file: path: "{{ user_user.home }}/bin/scm.sh" mode: '0755' @@ -44,6 +44,6 @@ create: true - name: General | Scripts | User | scm-dev.sh Permissions - file: + ansible.builtin.file: path: "{{ user_user.home }}/bin/scm-dev.sh" mode: '0755' diff --git a/tasks/general/software/env-shared.yml b/tasks/general/software/env-shared.yml index 300f302..c8f4fc9 100644 --- a/tasks/general/software/env-shared.yml +++ b/tasks/general/software/env-shared.yml @@ -41,7 +41,7 @@ when: user_root.home != "" and user_user.home != "" - name: General | Account Management | Users | env-shared | Permissions - file: + ansible.builtin.file: path: "{{ user_user.home }}/{{ item }}" owner: "{{ user }}" group: "{{ user }}" diff --git a/tasks/general/tests/lock_create.yml b/tasks/general/tests/lock_create.yml index 1503152..c831cb8 100644 --- a/tasks/general/tests/lock_create.yml +++ b/tasks/general/tests/lock_create.yml @@ -7,7 +7,7 @@ - name: General | Tests | Existing Run | Lock | Create - file: + ansible.builtin.file: name: "{{ lock_file }}" mode: '0777' diff --git a/tasks/general/tests/lock_remove.yml b/tasks/general/tests/lock_remove.yml index dfb0462..400cf8a 100644 --- a/tasks/general/tests/lock_remove.yml +++ b/tasks/general/tests/lock_remove.yml @@ -3,7 +3,7 @@ # Ensure an existing run is not active, otherwise bail. - name: General | Tests | Existing Run | Lock | Remove - file: + ansible.builtin.file: name: "{{ lock_file }}" state: absent diff --git a/tasks/general/tests/lynis.yml b/tasks/general/tests/lynis.yml index ddb1c82..bd8f3f3 100644 --- a/tasks/general/tests/lynis.yml +++ b/tasks/general/tests/lynis.yml @@ -19,7 +19,7 @@ ignore_errors: true - name: General | Tests | Lynis | Ensure Permissions (Looking at you Parrot OS!) - file: + ansible.builtin.file: path: "{{ lynis_install_dir }}" state: directory mode: '0644' @@ -28,12 +28,12 @@ recurse: true - name: General | Tests | Lynis | Ensure Permissions 2 - file: + ansible.builtin.file: path: "{{ lynis_install_dir }}/lynis" mode: '0755' - name: General | Tests | Lynis | Ensure Folder Permissions - file: + ansible.builtin.file: path: "{{ lynis_install_dir }}" state: directory mode: '0755' @@ -49,6 +49,6 @@ chdir: "{{ lynis_install_dir }}" - name: General | Tests | Lynis | Make Report Readable - file: + ansible.builtin.file: path: "{{ lynis_file }}" mode: '0644' diff --git a/tasks/general/tests/nmap.yml b/tasks/general/tests/nmap.yml index c682466..b06acb0 100644 --- a/tasks/general/tests/nmap.yml +++ b/tasks/general/tests/nmap.yml @@ -25,6 +25,6 @@ - "mv {{ nmap_temp_file }} {{ nmap_file }}" - name: General | Tests | nmap | Make Viewable - file: + ansible.builtin.file: path: "{{ nmap_file }}" mode: '0644' diff --git a/tasks/general/tests/services.yml b/tasks/general/tests/services.yml index c00397e..c488d8f 100644 --- a/tasks/general/tests/services.yml +++ b/tasks/general/tests/services.yml @@ -33,6 +33,6 @@ when: ansible_service_mgr == "systemd" - name: General | Tests | Services | Make Viewable - file: + ansible.builtin.file: path: "{{ services_report_file }}" mode: '0644' diff --git a/tasks/workstation/linux/software/android.yml b/tasks/workstation/linux/software/android.yml index 21a8977..db52137 100644 --- a/tasks/workstation/linux/software/android.yml +++ b/tasks/workstation/linux/software/android.yml @@ -215,7 +215,7 @@ when: not android_download_stat.stat.exists - name: Workstation | Linux | Software | Android | Create Folder - file: + ansible.builtin.file: path: "{{ android_sdk_cmdline_temp }}" state: directory owner: "{{ user }}" @@ -235,7 +235,7 @@ and not android_sdkmanager_temp_stat.stat.exists - name: Workstation | Linux | Software | Android | Delete Archive - file: + ansible.builtin.file: path: "{{ android_download_file }}" state: absent @@ -413,7 +413,7 @@ ## Uninstall SDK ## - name: Workstation | Linux | Software | Android | Remove SDK - file: + ansible.builtin.file: path: "{{ android_sdk_location }}" state: absent when: not coding diff --git a/tasks/workstation/linux/software/flatpaks.yml b/tasks/workstation/linux/software/flatpaks.yml index f14bbc1..477b9a3 100644 --- a/tasks/workstation/linux/software/flatpaks.yml +++ b/tasks/workstation/linux/software/flatpaks.yml @@ -118,7 +118,7 @@ become_user: "{{ user }}" - name: Workstation | Linux | Flatpak Distro | Flatpak | Generic | Executable Permissions - file: + ansible.builtin.file: path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}" state: file mode: '0755' @@ -151,7 +151,7 @@ when: coding - name: Workstation | Linux | Flatpak Distro | Flatpak | Coding | Executable Permissions - file: + ansible.builtin.file: path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}" state: file mode: '0755' @@ -167,7 +167,7 @@ when: not coding - name: Workstation | Linux | Flatpak Distro | Flatpak | Coding | Remove Executables - file: + ansible.builtin.file: path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}" state: absent loop: "{{ flatpaks_coding }}" @@ -200,7 +200,7 @@ when: editing in (true, "video") - name: Workstation | Linux | Flatpak Distro | Flatpak | Video Editors | Executable Permissions - file: + ansible.builtin.file: path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}" state: file mode: '0755' @@ -216,7 +216,7 @@ when: not editing in (true, "video") - name: Workstation | Linux | Flatpak Distro | Flatpak | Video Editors | Remove Executables - file: + ansible.builtin.file: path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}" state: absent loop: "{{ flatpaks_editing_video }}" @@ -247,7 +247,7 @@ when: editing in (true, "audio") - name: Workstation | Linux | Flatpak Distro | Flatpak | Audio/Video Editors | Executable Permissions - file: + ansible.builtin.file: path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}" state: file mode: '0755' @@ -263,7 +263,7 @@ when: not editing in (true, "audio") - name: Workstation | Linux | Flatpak Distro | Flatpak | Audio/Video Editors | Remove Executables - file: + ansible.builtin.file: path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}" state: absent loop: "{{ flatpaks_editing_audio }}" @@ -296,7 +296,7 @@ when: gaming - name: Workstation | Linux | Flatpak Distro | Flatpak | Gaming | Executable Permissions - file: + ansible.builtin.file: path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}" state: file mode: '0755' @@ -312,7 +312,7 @@ when: not gaming - name: Workstation | Linux | Flatpak Distro | Flatpak | Gaming | Remove Executables - file: + ansible.builtin.file: path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}" state: absent loop: "{{ flatpaks_gaming }}" @@ -328,7 +328,7 @@ loop: "{{ flatpaks_remove }}" - name: Workstation | Linux | Flatpak Distro | Flatpak | Uninstalls | Remove Executables - file: + ansible.builtin.file: path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}" state: absent loop: "{{ flatpaks_remove }}" diff --git a/tasks/workstation/linux/software/flutter.yml b/tasks/workstation/linux/software/flutter.yml index 805737f..e271bd8 100644 --- a/tasks/workstation/linux/software/flutter.yml +++ b/tasks/workstation/linux/software/flutter.yml @@ -101,7 +101,7 @@ when: not flutter_download_stat.stat.exists - name: Workstation | Linux | Software | Flutter | Create Folder - file: + ansible.builtin.file: path: "{{ flutter_sdk_location }}" state: directory owner: "{{ user }}" @@ -121,7 +121,7 @@ and not flutter_sdk_stat.stat.exists - name: Workstation | Linux | Software | Flutter | Delete Archive - file: + ansible.builtin.file: path: "{{ flutter_download_file }}" state: absent when: coding @@ -174,7 +174,7 @@ ## Uninstall SDK ## - name: Workstation | Linux | Software | Flutter | Remove SDK - file: + ansible.builtin.file: path: "{{ flutter_sdk_location }}" state: absent when: not coding diff --git a/tasks/workstation/linux/software/vpn.yml b/tasks/workstation/linux/software/vpn.yml index 73a8a99..06556a0 100644 --- a/tasks/workstation/linux/software/vpn.yml +++ b/tasks/workstation/linux/software/vpn.yml @@ -97,7 +97,7 @@ - chmod +x {{ mullvad_exe_new }} - name: Workstation | Software | VPN | Mullvad | runit | Enable Service (mullvad-daemon) - file: + ansible.builtin.file: src: "{{ runit_script_dir }}/mullvad-daemon" dest: "{{ runit_service_dir }}/mullvad-daemon" state: link @@ -105,7 +105,7 @@ when: ansible_service_mgr == "runit" - name: Workstation | Software | VPN | Mullvad | runit | Remove Old Service (mullvad) - file: + ansible.builtin.file: path: "{{ runit_service_dir }}/mullvad" state: absent when: ansible_service_mgr == "runit" diff --git a/tasks/workstation/shared/settings/templates.yml b/tasks/workstation/shared/settings/templates.yml index 61d304a..1d18812 100644 --- a/tasks/workstation/shared/settings/templates.yml +++ b/tasks/workstation/shared/settings/templates.yml @@ -6,7 +6,7 @@ user_templates: "{{ user_user.home }}/Templates" - name: Workstation | Settings | Templates | Ensure Directory Exists - file: + ansible.builtin.file: path: "{{ user_templates }}" state: directory mode: '0755' diff --git a/tasks/workstation/shared/software/i3.yml b/tasks/workstation/shared/software/i3.yml index e5cd80a..aae6dd7 100644 --- a/tasks/workstation/shared/software/i3.yml +++ b/tasks/workstation/shared/software/i3.yml @@ -76,7 +76,7 @@ ignore_errors: true - name: Workstation | Shared | Software | i3 | Config | Create Dir - file: + ansible.builtin.file: path: "{{ i3_config_dir }}" state: directory mode: '0755'