Migrate set_fact to FQCN.

This commit is contained in:
me
2026-10-02 11:23:31 -07:00
parent ab09a74bf2
commit b306064061
41 changed files with 150 additions and 150 deletions
+14 -14
View File
@@ -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
+4 -4
View File
@@ -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"
+8 -8
View File
@@ -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 -2
View File
@@ -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"
+1 -1
View File
@@ -7,7 +7,7 @@
ansible.builtin.shell: "scp {{ file_server }}:{{ config_file_remote }} {{ config_file_local }}; chmod 700 {{ config_file_local }}"
- name: Miner | Facts | Config File | Load Wallets
set_fact:
ansible.builtin.set_fact:
wallet_xmr: "{{ lookup('ini', 'xmr section={{config_section_wallet}} file={{config_file_local}}') }}"
wallet_eth: "{{ lookup('ini', 'eth section={{config_section_wallet}} file={{config_file_local}}') }}"
+6 -6
View File
@@ -2,7 +2,7 @@
# Create arrays of pools per coin.
- name: Miner | Facts | Pools
set_fact:
ansible.builtin.set_fact:
nanopool_xmr:
- { "priority": 1, "name": "xmr-us-east1.nanopool.org:14433" }
- { "priority": 2, "name": "xmr-us-west1.nanopool.org:14433" }
@@ -34,7 +34,7 @@
# CPU #
- name: Miner | Facts | Pools | Set GPU to Nanopool Eth
set_fact:
ansible.builtin.set_fact:
cpu_pool: "{{ nanopool_xmr }}"
when: nanominer_cpu == "xmr" and nanominer_cpu_pool == "nanopool"
@@ -42,20 +42,20 @@
# GPU #
- name: Miner | Facts | Pools | Set GPU to Nanopool Eth
set_fact:
ansible.builtin.set_fact:
gpu_pool: "{{ nanopool_eth }}"
when: nanominer_gpu == "eth" and nanominer_gpu_pool == "nanopool"
- name: Miner | Facts | Pools | Set GPU to Etherpool Eth
set_fact:
ansible.builtin.set_fact:
gpu_pool: "{{ ethermine_eth }}"
when: nanominer_gpu == "eth" and nanominer_gpu_pool == "etherpool"
- name: Miner | Facts | Pools | Set GPU to F2Pool Eth
set_fact:
ansible.builtin.set_fact:
gpu_pool: "{{ f2pool_eth }}"
when: nanominer_gpu == "eth" and nanominer_gpu_pool == "f2pool"
## Validate ##
+7 -7
View File
@@ -4,21 +4,21 @@
## Global ##
- name: Miner | Facts | System | Global 1
set_fact:
ansible.builtin.set_fact:
file_server: '{{ user }}@leet'
check_alive_start: "[[ `ps -ef | grep -v 'grep' | grep -v '/bin/sh -c' | grep -v $$ | grep -c '"
check_alive_end: "'` == '0' ]] &&"
combined_log_file: "{{ user_mfn.home }}/log.txt"
- name: Miner | Facts | System | Global 2
set_fact:
ansible.builtin.set_fact:
use_combined_log_file: ">> {{ combined_log_file }} 2>&1"
## Config File ##
- name: Miner | Facts | System | My Config File
set_fact:
ansible.builtin.set_fact:
config_file_remote: "InstallFiles/Miners/miner.ini"
config_file_local: "{{ user_mfn.home }}/miner.ini"
config_section_wallet: wallet
@@ -31,20 +31,20 @@
## Nanominer ##
- name: Miner | Facts | System | nanominer 1
set_fact:
ansible.builtin.set_fact:
nanominer_home: "{{ user_mfn.home }}/nanominer"
nanominer_version: "3.4.3" # Download link: https://github.com/nanopool/nanominer/releases
nanominer_script: "{{ user_mfn.home }}/nanominer.sh"
- name: Miner | Facts | System | nanominer 2
set_fact:
ansible.builtin.set_fact:
nanominer_bin: "{{ nanominer_home }}/nanominer-linux-{{ nanominer_version }}"
nanominer_tar_remote: "InstallFiles/Miners/nanominer/*{{ nanominer_version }}*.tar.gz"
nanominer_config: "{{ nanominer_home }}/config.ini"
nanominer_logs: "{{ nanominer_home}}/logs"
- name: Miner | Facts | System | nanominer 3
set_fact:
ansible.builtin.set_fact:
nanominer_tar_local: "{{ nanominer_bin }}.tar.gz"
nanominer_exec: "{{ nanominer_bin }}/nanominer"
@@ -52,7 +52,7 @@
## Miner Array ##
- name: Miner | Facts | System | Miner Array
set_fact:
ansible.builtin.set_fact:
miners:
- { "name": "xmr_stak_cpu", "enabled": '{{ (xmr_stak_cpu != false) }}', "command": "{{ user_mfn.home }}/xmr_stak_cpu.sh {{ use_combined_log_file }}" }
- { "name": "ethminer", "enabled": '{{ (ethminer != false) }}', "command": "{{ user_mfn.home }}/ethminer.sh {{ use_combined_log_file }}" }
+1 -1
View File
@@ -2,6 +2,6 @@
# System related variables.
- name: Facts | Server | System | FreeBSD
set_fact:
ansible.builtin.set_fact:
ansible_python_interpreter: "/usr/local/bin/python3.8"
when: ansible_system == "FreeBSD"
+15 -15
View File
@@ -3,14 +3,14 @@
# This is only for Workstation devices with UIs.
- name: Workstation | Facts | Packages | 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: Workstation | Facts | Package | Consistent
set_fact:
ansible.builtin.set_fact:
firefox: firefox
firefox_esr: firefox-esr
thunderbird: thunderbird
@@ -61,7 +61,7 @@
- name: Workstation | Facts | Package | apt (All Distros)
set_fact:
ansible.builtin.set_fact:
xz: xz-utils
mesa: libglu1-mesa
mesa_utils: libglu1-mesa
@@ -81,45 +81,45 @@
when: ansible_pkg_mgr == "apt"
- name: Workstation | Facts | Package | Pop_OS!
set_fact:
ansible.builtin.set_fact:
flatpak_distro: true
firefox_esr: firefox
when: ansible_distribution == "Pop!_OS"
- name: Workstation | Facts | Package | Ubuntu
set_fact:
ansible.builtin.set_fact:
flatpak_distro: true
firefox_esr: firefox
dmenu: suckless-tools
when: ansible_distribution == "Ubuntu"
- name: Workstation | Facts | Package | Debian & Devuan
set_fact:
ansible.builtin.set_fact:
flatpak_distro: true
dmenu: suckless-tools
firefox: firefox-esr
when: ansible_distribution in ("Debian", "Devuan")
- name: Workstation | Facts | Package | Mint
set_fact:
ansible.builtin.set_fact:
flatpak_distro: true
firefox_esr: firefox
when: ansible_distribution == "Linux Mint"
- name: Workstation | Facts | Package | Parrot OS
set_fact:
ansible.builtin.set_fact:
flatpak_distro: true
when: ansible_distribution == "Parrot OS"
- name: Workstation | Facts | Package | Apt w/o LibVirt
set_fact:
ansible.builtin.set_fact:
gnome_boxes: htop
when: ansible_pkg_mgr == "apt"
and ansible_service_mgr not in ("systemd", "sysvinit")
- name: Workstation | Facts | Package | pacman (All Distros)
set_fact:
ansible.builtin.set_fact:
macbook_wifi_driver: broadcom-wl-dkms
android_jdk: jdk-openjdk
android_fastboot: android-tools
@@ -128,7 +128,7 @@
when: ansible_pkg_mgr == "pacman"
- name: Workstation | Facts | Package | Arch / Manjaro / Artix
set_fact:
ansible.builtin.set_fact:
flatpak_distro: true
psutil: python-psutil
#appimagelauncher: appimagelauncher # No longer in the repos, AUR.
@@ -139,7 +139,7 @@
- name: Workstation | Facts | Package | FreeBSD
set_fact:
ansible.builtin.set_fact:
flatpak_distro: false
psutil: py38-psutil
ansible_python_interpreter: "/usr/local/bin/python3.8"
@@ -149,7 +149,7 @@
- name: Workstation | Facts | Package | Fedora
set_fact:
ansible.builtin.set_fact:
flatpak_distro: true
firefox_esr: firefox
font_awesome: python3-XStatic-Font-Awesome
@@ -159,7 +159,7 @@
- name: Workstation | Facts | Package | openSUSE
set_fact:
ansible.builtin.set_fact:
flatpak_distro: true
firefox_esr: firefox-esr-branding-openSUSE
font_awesome: fontawesome-fonts
@@ -168,6 +168,6 @@
- name: Workstation | Facts | Package | NixOS
set_fact:
ansible.builtin.set_fact:
flatpak_distro: false
when: ansible_distribution == "NixOS"