Migrate file to FQCN.
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
srv_file: "{{ prov_dir }}/server.ini"
|
srv_file: "{{ prov_dir }}/server.ini"
|
||||||
|
|
||||||
- name: General | Account Management | Provisioning Configuration | Create Directory
|
- name: General | Account Management | Provisioning Configuration | Create Directory
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ prov_dir }}"
|
path: "{{ prov_dir }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# Copy everything from PROJECT/files/scripts/ to /usr/local/bin/.
|
# Copy everything from PROJECT/files/scripts/ to /usr/local/bin/.
|
||||||
|
|
||||||
- name: General | Scripts | Install | Ensure Directory Exists
|
- name: General | Scripts | Install | Ensure Directory Exists
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: '{{ global_bin }}'
|
path: '{{ global_bin }}'
|
||||||
state: directory
|
state: directory
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
create: true
|
create: true
|
||||||
|
|
||||||
- name: General | Scripts | Root | scm.sh Permissions
|
- name: General | Scripts | Root | scm.sh Permissions
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ user_root.home }}/bin/scm.sh"
|
path: "{{ user_root.home }}/bin/scm.sh"
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
|
|
||||||
@@ -44,6 +44,6 @@
|
|||||||
create: true
|
create: true
|
||||||
|
|
||||||
- name: General | Scripts | Root | scm-dev.sh Permissions
|
- name: General | Scripts | Root | scm-dev.sh Permissions
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ user_root.home }}/bin/scm-dev.sh"
|
path: "{{ user_root.home }}/bin/scm-dev.sh"
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
create: true
|
create: true
|
||||||
|
|
||||||
- name: General | Scripts | User | scm.sh Permissions
|
- name: General | Scripts | User | scm.sh Permissions
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ user_user.home }}/bin/scm.sh"
|
path: "{{ user_user.home }}/bin/scm.sh"
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
|
|
||||||
@@ -44,6 +44,6 @@
|
|||||||
create: true
|
create: true
|
||||||
|
|
||||||
- name: General | Scripts | User | scm-dev.sh Permissions
|
- name: General | Scripts | User | scm-dev.sh Permissions
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ user_user.home }}/bin/scm-dev.sh"
|
path: "{{ user_user.home }}/bin/scm-dev.sh"
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
when: user_root.home != "" and user_user.home != ""
|
when: user_root.home != "" and user_user.home != ""
|
||||||
|
|
||||||
- name: General | Account Management | Users | env-shared | Permissions
|
- name: General | Account Management | Users | env-shared | Permissions
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ user_user.home }}/{{ item }}"
|
path: "{{ user_user.home }}/{{ item }}"
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
group: "{{ user }}"
|
group: "{{ user }}"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
|
|
||||||
- name: General | Tests | Existing Run | Lock | Create
|
- name: General | Tests | Existing Run | Lock | Create
|
||||||
file:
|
ansible.builtin.file:
|
||||||
name: "{{ lock_file }}"
|
name: "{{ lock_file }}"
|
||||||
mode: '0777'
|
mode: '0777'
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
# Ensure an existing run is not active, otherwise bail.
|
# Ensure an existing run is not active, otherwise bail.
|
||||||
|
|
||||||
- name: General | Tests | Existing Run | Lock | Remove
|
- name: General | Tests | Existing Run | Lock | Remove
|
||||||
file:
|
ansible.builtin.file:
|
||||||
name: "{{ lock_file }}"
|
name: "{{ lock_file }}"
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: General | Tests | Lynis | Ensure Permissions (Looking at you Parrot OS!)
|
- name: General | Tests | Lynis | Ensure Permissions (Looking at you Parrot OS!)
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ lynis_install_dir }}"
|
path: "{{ lynis_install_dir }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
@@ -28,12 +28,12 @@
|
|||||||
recurse: true
|
recurse: true
|
||||||
|
|
||||||
- name: General | Tests | Lynis | Ensure Permissions 2
|
- name: General | Tests | Lynis | Ensure Permissions 2
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ lynis_install_dir }}/lynis"
|
path: "{{ lynis_install_dir }}/lynis"
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
|
|
||||||
- name: General | Tests | Lynis | Ensure Folder Permissions
|
- name: General | Tests | Lynis | Ensure Folder Permissions
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ lynis_install_dir }}"
|
path: "{{ lynis_install_dir }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
@@ -49,6 +49,6 @@
|
|||||||
chdir: "{{ lynis_install_dir }}"
|
chdir: "{{ lynis_install_dir }}"
|
||||||
|
|
||||||
- name: General | Tests | Lynis | Make Report Readable
|
- name: General | Tests | Lynis | Make Report Readable
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ lynis_file }}"
|
path: "{{ lynis_file }}"
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
|
|||||||
@@ -25,6 +25,6 @@
|
|||||||
- "mv {{ nmap_temp_file }} {{ nmap_file }}"
|
- "mv {{ nmap_temp_file }} {{ nmap_file }}"
|
||||||
|
|
||||||
- name: General | Tests | nmap | Make Viewable
|
- name: General | Tests | nmap | Make Viewable
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ nmap_file }}"
|
path: "{{ nmap_file }}"
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
|
|||||||
@@ -33,6 +33,6 @@
|
|||||||
when: ansible_service_mgr == "systemd"
|
when: ansible_service_mgr == "systemd"
|
||||||
|
|
||||||
- name: General | Tests | Services | Make Viewable
|
- name: General | Tests | Services | Make Viewable
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ services_report_file }}"
|
path: "{{ services_report_file }}"
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
|
|||||||
@@ -215,7 +215,7 @@
|
|||||||
when: not android_download_stat.stat.exists
|
when: not android_download_stat.stat.exists
|
||||||
|
|
||||||
- name: Workstation | Linux | Software | Android | Create Folder
|
- name: Workstation | Linux | Software | Android | Create Folder
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ android_sdk_cmdline_temp }}"
|
path: "{{ android_sdk_cmdline_temp }}"
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
@@ -235,7 +235,7 @@
|
|||||||
and not android_sdkmanager_temp_stat.stat.exists
|
and not android_sdkmanager_temp_stat.stat.exists
|
||||||
|
|
||||||
- name: Workstation | Linux | Software | Android | Delete Archive
|
- name: Workstation | Linux | Software | Android | Delete Archive
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ android_download_file }}"
|
path: "{{ android_download_file }}"
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
@@ -413,7 +413,7 @@
|
|||||||
## Uninstall SDK ##
|
## Uninstall SDK ##
|
||||||
|
|
||||||
- name: Workstation | Linux | Software | Android | Remove SDK
|
- name: Workstation | Linux | Software | Android | Remove SDK
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ android_sdk_location }}"
|
path: "{{ android_sdk_location }}"
|
||||||
state: absent
|
state: absent
|
||||||
when: not coding
|
when: not coding
|
||||||
|
|||||||
@@ -118,7 +118,7 @@
|
|||||||
become_user: "{{ user }}"
|
become_user: "{{ user }}"
|
||||||
|
|
||||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Generic | Executable Permissions
|
- name: Workstation | Linux | Flatpak Distro | Flatpak | Generic | Executable Permissions
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
||||||
state: file
|
state: file
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
@@ -151,7 +151,7 @@
|
|||||||
when: coding
|
when: coding
|
||||||
|
|
||||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Coding | Executable Permissions
|
- name: Workstation | Linux | Flatpak Distro | Flatpak | Coding | Executable Permissions
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
||||||
state: file
|
state: file
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
@@ -167,7 +167,7 @@
|
|||||||
when: not coding
|
when: not coding
|
||||||
|
|
||||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Coding | Remove Executables
|
- name: Workstation | Linux | Flatpak Distro | Flatpak | Coding | Remove Executables
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
||||||
state: absent
|
state: absent
|
||||||
loop: "{{ flatpaks_coding }}"
|
loop: "{{ flatpaks_coding }}"
|
||||||
@@ -200,7 +200,7 @@
|
|||||||
when: editing in (true, "video")
|
when: editing in (true, "video")
|
||||||
|
|
||||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Video Editors | Executable Permissions
|
- name: Workstation | Linux | Flatpak Distro | Flatpak | Video Editors | Executable Permissions
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
||||||
state: file
|
state: file
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
@@ -216,7 +216,7 @@
|
|||||||
when: not editing in (true, "video")
|
when: not editing in (true, "video")
|
||||||
|
|
||||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Video Editors | Remove Executables
|
- name: Workstation | Linux | Flatpak Distro | Flatpak | Video Editors | Remove Executables
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
||||||
state: absent
|
state: absent
|
||||||
loop: "{{ flatpaks_editing_video }}"
|
loop: "{{ flatpaks_editing_video }}"
|
||||||
@@ -247,7 +247,7 @@
|
|||||||
when: editing in (true, "audio")
|
when: editing in (true, "audio")
|
||||||
|
|
||||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Audio/Video Editors | Executable Permissions
|
- name: Workstation | Linux | Flatpak Distro | Flatpak | Audio/Video Editors | Executable Permissions
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
||||||
state: file
|
state: file
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
@@ -263,7 +263,7 @@
|
|||||||
when: not editing in (true, "audio")
|
when: not editing in (true, "audio")
|
||||||
|
|
||||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Audio/Video Editors | Remove Executables
|
- name: Workstation | Linux | Flatpak Distro | Flatpak | Audio/Video Editors | Remove Executables
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
||||||
state: absent
|
state: absent
|
||||||
loop: "{{ flatpaks_editing_audio }}"
|
loop: "{{ flatpaks_editing_audio }}"
|
||||||
@@ -296,7 +296,7 @@
|
|||||||
when: gaming
|
when: gaming
|
||||||
|
|
||||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Gaming | Executable Permissions
|
- name: Workstation | Linux | Flatpak Distro | Flatpak | Gaming | Executable Permissions
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
||||||
state: file
|
state: file
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
@@ -312,7 +312,7 @@
|
|||||||
when: not gaming
|
when: not gaming
|
||||||
|
|
||||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Gaming | Remove Executables
|
- name: Workstation | Linux | Flatpak Distro | Flatpak | Gaming | Remove Executables
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
||||||
state: absent
|
state: absent
|
||||||
loop: "{{ flatpaks_gaming }}"
|
loop: "{{ flatpaks_gaming }}"
|
||||||
@@ -328,7 +328,7 @@
|
|||||||
loop: "{{ flatpaks_remove }}"
|
loop: "{{ flatpaks_remove }}"
|
||||||
|
|
||||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Uninstalls | Remove Executables
|
- name: Workstation | Linux | Flatpak Distro | Flatpak | Uninstalls | Remove Executables
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
||||||
state: absent
|
state: absent
|
||||||
loop: "{{ flatpaks_remove }}"
|
loop: "{{ flatpaks_remove }}"
|
||||||
|
|||||||
@@ -101,7 +101,7 @@
|
|||||||
when: not flutter_download_stat.stat.exists
|
when: not flutter_download_stat.stat.exists
|
||||||
|
|
||||||
- name: Workstation | Linux | Software | Flutter | Create Folder
|
- name: Workstation | Linux | Software | Flutter | Create Folder
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ flutter_sdk_location }}"
|
path: "{{ flutter_sdk_location }}"
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ user }}"
|
owner: "{{ user }}"
|
||||||
@@ -121,7 +121,7 @@
|
|||||||
and not flutter_sdk_stat.stat.exists
|
and not flutter_sdk_stat.stat.exists
|
||||||
|
|
||||||
- name: Workstation | Linux | Software | Flutter | Delete Archive
|
- name: Workstation | Linux | Software | Flutter | Delete Archive
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ flutter_download_file }}"
|
path: "{{ flutter_download_file }}"
|
||||||
state: absent
|
state: absent
|
||||||
when: coding
|
when: coding
|
||||||
@@ -174,7 +174,7 @@
|
|||||||
## Uninstall SDK ##
|
## Uninstall SDK ##
|
||||||
|
|
||||||
- name: Workstation | Linux | Software | Flutter | Remove SDK
|
- name: Workstation | Linux | Software | Flutter | Remove SDK
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ flutter_sdk_location }}"
|
path: "{{ flutter_sdk_location }}"
|
||||||
state: absent
|
state: absent
|
||||||
when: not coding
|
when: not coding
|
||||||
|
|||||||
@@ -97,7 +97,7 @@
|
|||||||
- chmod +x {{ mullvad_exe_new }}
|
- chmod +x {{ mullvad_exe_new }}
|
||||||
|
|
||||||
- name: Workstation | Software | VPN | Mullvad | runit | Enable Service (mullvad-daemon)
|
- name: Workstation | Software | VPN | Mullvad | runit | Enable Service (mullvad-daemon)
|
||||||
file:
|
ansible.builtin.file:
|
||||||
src: "{{ runit_script_dir }}/mullvad-daemon"
|
src: "{{ runit_script_dir }}/mullvad-daemon"
|
||||||
dest: "{{ runit_service_dir }}/mullvad-daemon"
|
dest: "{{ runit_service_dir }}/mullvad-daemon"
|
||||||
state: link
|
state: link
|
||||||
@@ -105,7 +105,7 @@
|
|||||||
when: ansible_service_mgr == "runit"
|
when: ansible_service_mgr == "runit"
|
||||||
|
|
||||||
- name: Workstation | Software | VPN | Mullvad | runit | Remove Old Service (mullvad)
|
- name: Workstation | Software | VPN | Mullvad | runit | Remove Old Service (mullvad)
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ runit_service_dir }}/mullvad"
|
path: "{{ runit_service_dir }}/mullvad"
|
||||||
state: absent
|
state: absent
|
||||||
when: ansible_service_mgr == "runit"
|
when: ansible_service_mgr == "runit"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
user_templates: "{{ user_user.home }}/Templates"
|
user_templates: "{{ user_user.home }}/Templates"
|
||||||
|
|
||||||
- name: Workstation | Settings | Templates | Ensure Directory Exists
|
- name: Workstation | Settings | Templates | Ensure Directory Exists
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ user_templates }}"
|
path: "{{ user_templates }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
|
|||||||
@@ -76,7 +76,7 @@
|
|||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: Workstation | Shared | Software | i3 | Config | Create Dir
|
- name: Workstation | Shared | Software | i3 | Config | Create Dir
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ i3_config_dir }}"
|
path: "{{ i3_config_dir }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
|
|||||||
Reference in New Issue
Block a user