Migrate set_fact to FQCN.
This commit is contained in:
+14
-14
@@ -3,7 +3,7 @@
|
||||
# This file is for ALL systems and should not include UI components.
|
||||
|
||||
- name: General | Facts | Package | Shared Defaults
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
sshfs: sshfs
|
||||
tar: tar
|
||||
iftop: iftop
|
||||
@@ -24,13 +24,13 @@
|
||||
jq: jq
|
||||
|
||||
- name: General | Facts | Package | Parrot OS Fixes
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
ansible_pkg_mgr: "apt"
|
||||
ansible_python_interpreter: "/usr/bin/python3"
|
||||
when: ansible_distribution == "Parrot OS"
|
||||
|
||||
- name: General | Facts | Package | apt
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
locate: locate
|
||||
opensshd: openssh-server
|
||||
microcode_amd: amd64-microcode
|
||||
@@ -41,7 +41,7 @@
|
||||
when: ansible_pkg_mgr == "apt"
|
||||
|
||||
- name: General | Facts | Package | pacman
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
locate: mlocate
|
||||
opensshd: openssh
|
||||
microcode_amd: linux-firmware
|
||||
@@ -53,7 +53,7 @@
|
||||
when: ansible_pkg_mgr == "pacman"
|
||||
|
||||
- name: General | Facts | Package | FreeBSD
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
sshfs: fusefs-sshfs
|
||||
locate: htop # Placeholder to prevent errors, locate built into FreeBSD.
|
||||
opensshd: htop # sshd comes installed on FreeBSD
|
||||
@@ -65,12 +65,12 @@
|
||||
when: ansible_system == "FreeBSD"
|
||||
|
||||
- name: General | Facts | Package | dnf (Fixes)
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
ansible_pkg_mgr: dnf
|
||||
when: ansible_pkg_mgr in ("dnf5")
|
||||
|
||||
- name: General | Facts | Package | dnf
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
sshfs: fuse-sshfs
|
||||
locate: plocate
|
||||
opensshd: openssh
|
||||
@@ -83,7 +83,7 @@
|
||||
when: ansible_pkg_mgr == "dnf"
|
||||
|
||||
- name: General | Facts | Package | zypper
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
locate: plocate
|
||||
opensshd: openssh
|
||||
microcode_amd: ucode-amd
|
||||
@@ -95,7 +95,7 @@
|
||||
|
||||
|
||||
- name: General | Facts | Package | Update Command | Helpers
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
update_accept_var: '$accept'
|
||||
nix_days: 14
|
||||
ansible_distribution_file: "{{ prov_dir }}/ansible_distribution.txt"
|
||||
@@ -108,7 +108,7 @@
|
||||
- "echo '{{ ansible_pkg_mgr }}' > {{ ansible_pkg_mgr_file }}"
|
||||
|
||||
- name: General | Facts | Package | Update Command
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
update_package_manager: |
|
||||
|
||||
distribution="`cat {{ ansible_distribution_file }}`"
|
||||
@@ -274,7 +274,7 @@
|
||||
ignore_errors: true
|
||||
|
||||
- name: General | Facts | Package | Update Command | Flatpak | Exists
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
update_flatpak: |
|
||||
echo "*** Flatpak ***"
|
||||
[[ -n "$accept" ]] && sudo flatpak repair
|
||||
@@ -286,7 +286,7 @@
|
||||
and not flatpak_exec.failed
|
||||
|
||||
- name: General | Facts | Package | Update Command | Flatpak | Missing
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
update_flatpak: |
|
||||
echo "*** Flatpak Not Installed ***"
|
||||
when: update_flatpak is not defined
|
||||
@@ -298,7 +298,7 @@
|
||||
ignore_errors: true
|
||||
|
||||
- name: General | Facts | Package | Update Command | Firmware | Exists
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
update_firmware: |
|
||||
echo "*** Firmware ***"
|
||||
sudo fwupdmgr refresh --force &&
|
||||
@@ -310,7 +310,7 @@
|
||||
and not fwupdmgr_exec.failed
|
||||
|
||||
- name: General | Facts | Package | Update Command | Firmware | Missing
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
update_firmware: |
|
||||
echo "*** Firmware Updater (fwupdmgr) Not Installed ***"
|
||||
when: update_firmware is not defined
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Definitions for service management.
|
||||
|
||||
- name: General | Facts | Service | All
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
cups: cups
|
||||
cups_pattern: cupsd
|
||||
cups_browse: cups-browsed
|
||||
@@ -18,19 +18,19 @@
|
||||
bluetooth_pattern: bluetooth
|
||||
|
||||
- name: General | Facts | Service | Arch Linux
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
crond: cronie
|
||||
crond_pattern: cronie
|
||||
when: ansible_pkg_mgr == "pacman"
|
||||
|
||||
- name: General | Facts | Service | Fedora
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
crond: crond
|
||||
crond_pattern: crond
|
||||
when: ansible_distribution in ("Fedora")
|
||||
|
||||
- name: General | Facts | Service | Ubuntu Linux
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
sshd: ssh
|
||||
sshd_pattern: ssh
|
||||
when: ansible_distribution == "Ubuntu"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Define file, folder, and other facts per OS.
|
||||
|
||||
- name: General | Facts | System | Global 01
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
global_src: /usr/local/src
|
||||
global_bin: /usr/local/bin
|
||||
x_desktops: /usr/share/xsessions
|
||||
@@ -13,7 +13,7 @@
|
||||
runit_service_dir: /etc/runit/runsvdir/default
|
||||
|
||||
- name: General | Facts | System | Global 02
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
shared_rc_install_dir: "{{ global_src }}/env-shared"
|
||||
notify_log_file: "/var/log/{{ notify_log }}"
|
||||
notify_log_file_wip: "/tmp/{{ notify_log }}.wip"
|
||||
@@ -22,11 +22,11 @@
|
||||
st_install_dir: "{{ global_src }}/st"
|
||||
|
||||
- name: General | Facts | System | Global 03
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
shared_rc_bin: "{{ shared_rc_install_dir }}/bin-shared"
|
||||
|
||||
- name: General | Facts | System | Linux
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
rc_conf: /dev/null
|
||||
sudoers_install_dir: /etc/sudoers.d/
|
||||
sudoers_config: /etc/sudoers
|
||||
@@ -34,24 +34,24 @@
|
||||
when: ansible_system == "Linux"
|
||||
|
||||
- name: General | Facts | System | FreeBSD
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
rc_conf: /etc/rc.conf
|
||||
sudoers_install_dir: /usr/local/etc/sudoers.d/
|
||||
shutdown_command: sudo shutdown -p now
|
||||
when: ansible_system == "FreeBSD"
|
||||
|
||||
- name: General | Facts | System | Report File Names
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
lynis_report: "lynis_hardness_check.txt"
|
||||
nmap_report: "nmap_port_check.txt"
|
||||
|
||||
- name: General | Facts | System | Ansible Branch
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
branch: main
|
||||
when: branch is not defined
|
||||
|
||||
- name: General | Facts | System | runit (Devuan)
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
runit_script_dir: /etc/sv
|
||||
runit_service_dir: /etc/service
|
||||
when: ansible_pkg_mgr == "apt"
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
# Define users and groups per OS type.
|
||||
|
||||
- name: General | Facts | User | Linux
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
root_group: root
|
||||
when: ansible_system == "Linux"
|
||||
|
||||
|
||||
- name: General | Facts | User | FreeBSD
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
root_group: wheel
|
||||
when: ansible_system == "FreeBSD"
|
||||
|
||||
Reference in New Issue
Block a user