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. # This file is for ALL systems and should not include UI components.
- name: General | Facts | Package | Shared Defaults - name: General | Facts | Package | Shared Defaults
set_fact: ansible.builtin.set_fact:
sshfs: sshfs sshfs: sshfs
tar: tar tar: tar
iftop: iftop iftop: iftop
@@ -24,13 +24,13 @@
jq: jq jq: jq
- name: General | Facts | Package | Parrot OS Fixes - name: General | Facts | Package | Parrot OS Fixes
set_fact: ansible.builtin.set_fact:
ansible_pkg_mgr: "apt" ansible_pkg_mgr: "apt"
ansible_python_interpreter: "/usr/bin/python3" ansible_python_interpreter: "/usr/bin/python3"
when: ansible_distribution == "Parrot OS" when: ansible_distribution == "Parrot OS"
- name: General | Facts | Package | apt - name: General | Facts | Package | apt
set_fact: ansible.builtin.set_fact:
locate: locate locate: locate
opensshd: openssh-server opensshd: openssh-server
microcode_amd: amd64-microcode microcode_amd: amd64-microcode
@@ -41,7 +41,7 @@
when: ansible_pkg_mgr == "apt" when: ansible_pkg_mgr == "apt"
- name: General | Facts | Package | pacman - name: General | Facts | Package | pacman
set_fact: ansible.builtin.set_fact:
locate: mlocate locate: mlocate
opensshd: openssh opensshd: openssh
microcode_amd: linux-firmware microcode_amd: linux-firmware
@@ -53,7 +53,7 @@
when: ansible_pkg_mgr == "pacman" when: ansible_pkg_mgr == "pacman"
- name: General | Facts | Package | FreeBSD - name: General | Facts | Package | FreeBSD
set_fact: ansible.builtin.set_fact:
sshfs: fusefs-sshfs sshfs: fusefs-sshfs
locate: htop # Placeholder to prevent errors, locate built into FreeBSD. locate: htop # Placeholder to prevent errors, locate built into FreeBSD.
opensshd: htop # sshd comes installed on FreeBSD opensshd: htop # sshd comes installed on FreeBSD
@@ -65,12 +65,12 @@
when: ansible_system == "FreeBSD" when: ansible_system == "FreeBSD"
- name: General | Facts | Package | dnf (Fixes) - name: General | Facts | Package | dnf (Fixes)
set_fact: ansible.builtin.set_fact:
ansible_pkg_mgr: dnf ansible_pkg_mgr: dnf
when: ansible_pkg_mgr in ("dnf5") when: ansible_pkg_mgr in ("dnf5")
- name: General | Facts | Package | dnf - name: General | Facts | Package | dnf
set_fact: ansible.builtin.set_fact:
sshfs: fuse-sshfs sshfs: fuse-sshfs
locate: plocate locate: plocate
opensshd: openssh opensshd: openssh
@@ -83,7 +83,7 @@
when: ansible_pkg_mgr == "dnf" when: ansible_pkg_mgr == "dnf"
- name: General | Facts | Package | zypper - name: General | Facts | Package | zypper
set_fact: ansible.builtin.set_fact:
locate: plocate locate: plocate
opensshd: openssh opensshd: openssh
microcode_amd: ucode-amd microcode_amd: ucode-amd
@@ -95,7 +95,7 @@
- name: General | Facts | Package | Update Command | Helpers - name: General | Facts | Package | Update Command | Helpers
set_fact: ansible.builtin.set_fact:
update_accept_var: '$accept' update_accept_var: '$accept'
nix_days: 14 nix_days: 14
ansible_distribution_file: "{{ prov_dir }}/ansible_distribution.txt" ansible_distribution_file: "{{ prov_dir }}/ansible_distribution.txt"
@@ -108,7 +108,7 @@
- "echo '{{ ansible_pkg_mgr }}' > {{ ansible_pkg_mgr_file }}" - "echo '{{ ansible_pkg_mgr }}' > {{ ansible_pkg_mgr_file }}"
- name: General | Facts | Package | Update Command - name: General | Facts | Package | Update Command
set_fact: ansible.builtin.set_fact:
update_package_manager: | update_package_manager: |
distribution="`cat {{ ansible_distribution_file }}`" distribution="`cat {{ ansible_distribution_file }}`"
@@ -274,7 +274,7 @@
ignore_errors: true ignore_errors: true
- name: General | Facts | Package | Update Command | Flatpak | Exists - name: General | Facts | Package | Update Command | Flatpak | Exists
set_fact: ansible.builtin.set_fact:
update_flatpak: | update_flatpak: |
echo "*** Flatpak ***" echo "*** Flatpak ***"
[[ -n "$accept" ]] && sudo flatpak repair [[ -n "$accept" ]] && sudo flatpak repair
@@ -286,7 +286,7 @@
and not flatpak_exec.failed and not flatpak_exec.failed
- name: General | Facts | Package | Update Command | Flatpak | Missing - name: General | Facts | Package | Update Command | Flatpak | Missing
set_fact: ansible.builtin.set_fact:
update_flatpak: | update_flatpak: |
echo "*** Flatpak Not Installed ***" echo "*** Flatpak Not Installed ***"
when: update_flatpak is not defined when: update_flatpak is not defined
@@ -298,7 +298,7 @@
ignore_errors: true ignore_errors: true
- name: General | Facts | Package | Update Command | Firmware | Exists - name: General | Facts | Package | Update Command | Firmware | Exists
set_fact: ansible.builtin.set_fact:
update_firmware: | update_firmware: |
echo "*** Firmware ***" echo "*** Firmware ***"
sudo fwupdmgr refresh --force && sudo fwupdmgr refresh --force &&
@@ -310,7 +310,7 @@
and not fwupdmgr_exec.failed and not fwupdmgr_exec.failed
- name: General | Facts | Package | Update Command | Firmware | Missing - name: General | Facts | Package | Update Command | Firmware | Missing
set_fact: ansible.builtin.set_fact:
update_firmware: | update_firmware: |
echo "*** Firmware Updater (fwupdmgr) Not Installed ***" echo "*** Firmware Updater (fwupdmgr) Not Installed ***"
when: update_firmware is not defined when: update_firmware is not defined
+4 -4
View File
@@ -2,7 +2,7 @@
# Definitions for service management. # Definitions for service management.
- name: General | Facts | Service | All - name: General | Facts | Service | All
set_fact: ansible.builtin.set_fact:
cups: cups cups: cups
cups_pattern: cupsd cups_pattern: cupsd
cups_browse: cups-browsed cups_browse: cups-browsed
@@ -18,19 +18,19 @@
bluetooth_pattern: bluetooth bluetooth_pattern: bluetooth
- name: General | Facts | Service | Arch Linux - name: General | Facts | Service | Arch Linux
set_fact: ansible.builtin.set_fact:
crond: cronie crond: cronie
crond_pattern: cronie crond_pattern: cronie
when: ansible_pkg_mgr == "pacman" when: ansible_pkg_mgr == "pacman"
- name: General | Facts | Service | Fedora - name: General | Facts | Service | Fedora
set_fact: ansible.builtin.set_fact:
crond: crond crond: crond
crond_pattern: crond crond_pattern: crond
when: ansible_distribution in ("Fedora") when: ansible_distribution in ("Fedora")
- name: General | Facts | Service | Ubuntu Linux - name: General | Facts | Service | Ubuntu Linux
set_fact: ansible.builtin.set_fact:
sshd: ssh sshd: ssh
sshd_pattern: ssh sshd_pattern: ssh
when: ansible_distribution == "Ubuntu" when: ansible_distribution == "Ubuntu"
+8 -8
View File
@@ -2,7 +2,7 @@
# Define file, folder, and other facts per OS. # Define file, folder, and other facts per OS.
- name: General | Facts | System | Global 01 - name: General | Facts | System | Global 01
set_fact: ansible.builtin.set_fact:
global_src: /usr/local/src global_src: /usr/local/src
global_bin: /usr/local/bin global_bin: /usr/local/bin
x_desktops: /usr/share/xsessions x_desktops: /usr/share/xsessions
@@ -13,7 +13,7 @@
runit_service_dir: /etc/runit/runsvdir/default runit_service_dir: /etc/runit/runsvdir/default
- name: General | Facts | System | Global 02 - name: General | Facts | System | Global 02
set_fact: ansible.builtin.set_fact:
shared_rc_install_dir: "{{ global_src }}/env-shared" shared_rc_install_dir: "{{ global_src }}/env-shared"
notify_log_file: "/var/log/{{ notify_log }}" notify_log_file: "/var/log/{{ notify_log }}"
notify_log_file_wip: "/tmp/{{ notify_log }}.wip" notify_log_file_wip: "/tmp/{{ notify_log }}.wip"
@@ -22,11 +22,11 @@
st_install_dir: "{{ global_src }}/st" st_install_dir: "{{ global_src }}/st"
- name: General | Facts | System | Global 03 - name: General | Facts | System | Global 03
set_fact: ansible.builtin.set_fact:
shared_rc_bin: "{{ shared_rc_install_dir }}/bin-shared" shared_rc_bin: "{{ shared_rc_install_dir }}/bin-shared"
- name: General | Facts | System | Linux - name: General | Facts | System | Linux
set_fact: ansible.builtin.set_fact:
rc_conf: /dev/null rc_conf: /dev/null
sudoers_install_dir: /etc/sudoers.d/ sudoers_install_dir: /etc/sudoers.d/
sudoers_config: /etc/sudoers sudoers_config: /etc/sudoers
@@ -34,24 +34,24 @@
when: ansible_system == "Linux" when: ansible_system == "Linux"
- name: General | Facts | System | FreeBSD - name: General | Facts | System | FreeBSD
set_fact: ansible.builtin.set_fact:
rc_conf: /etc/rc.conf rc_conf: /etc/rc.conf
sudoers_install_dir: /usr/local/etc/sudoers.d/ sudoers_install_dir: /usr/local/etc/sudoers.d/
shutdown_command: sudo shutdown -p now shutdown_command: sudo shutdown -p now
when: ansible_system == "FreeBSD" when: ansible_system == "FreeBSD"
- name: General | Facts | System | Report File Names - name: General | Facts | System | Report File Names
set_fact: ansible.builtin.set_fact:
lynis_report: "lynis_hardness_check.txt" lynis_report: "lynis_hardness_check.txt"
nmap_report: "nmap_port_check.txt" nmap_report: "nmap_port_check.txt"
- name: General | Facts | System | Ansible Branch - name: General | Facts | System | Ansible Branch
set_fact: ansible.builtin.set_fact:
branch: main branch: main
when: branch is not defined when: branch is not defined
- name: General | Facts | System | runit (Devuan) - name: General | Facts | System | runit (Devuan)
set_fact: ansible.builtin.set_fact:
runit_script_dir: /etc/sv runit_script_dir: /etc/sv
runit_service_dir: /etc/service runit_service_dir: /etc/service
when: ansible_pkg_mgr == "apt" when: ansible_pkg_mgr == "apt"
+2 -2
View File
@@ -2,12 +2,12 @@
# Define users and groups per OS type. # Define users and groups per OS type.
- name: General | Facts | User | Linux - name: General | Facts | User | Linux
set_fact: ansible.builtin.set_fact:
root_group: root root_group: root
when: ansible_system == "Linux" when: ansible_system == "Linux"
- name: General | Facts | User | FreeBSD - name: General | Facts | User | FreeBSD
set_fact: ansible.builtin.set_fact:
root_group: wheel root_group: wheel
when: ansible_system == "FreeBSD" 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 }}" ansible.builtin.shell: "scp {{ file_server }}:{{ config_file_remote }} {{ config_file_local }}; chmod 700 {{ config_file_local }}"
- name: Miner | Facts | Config File | Load Wallets - 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_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}}') }}" 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. # Create arrays of pools per coin.
- name: Miner | Facts | Pools - name: Miner | Facts | Pools
set_fact: ansible.builtin.set_fact:
nanopool_xmr: nanopool_xmr:
- { "priority": 1, "name": "xmr-us-east1.nanopool.org:14433" } - { "priority": 1, "name": "xmr-us-east1.nanopool.org:14433" }
- { "priority": 2, "name": "xmr-us-west1.nanopool.org:14433" } - { "priority": 2, "name": "xmr-us-west1.nanopool.org:14433" }
@@ -34,7 +34,7 @@
# CPU # # CPU #
- name: Miner | Facts | Pools | Set GPU to Nanopool Eth - name: Miner | Facts | Pools | Set GPU to Nanopool Eth
set_fact: ansible.builtin.set_fact:
cpu_pool: "{{ nanopool_xmr }}" cpu_pool: "{{ nanopool_xmr }}"
when: nanominer_cpu == "xmr" and nanominer_cpu_pool == "nanopool" when: nanominer_cpu == "xmr" and nanominer_cpu_pool == "nanopool"
@@ -42,20 +42,20 @@
# GPU # # GPU #
- name: Miner | Facts | Pools | Set GPU to Nanopool Eth - name: Miner | Facts | Pools | Set GPU to Nanopool Eth
set_fact: ansible.builtin.set_fact:
gpu_pool: "{{ nanopool_eth }}" gpu_pool: "{{ nanopool_eth }}"
when: nanominer_gpu == "eth" and nanominer_gpu_pool == "nanopool" when: nanominer_gpu == "eth" and nanominer_gpu_pool == "nanopool"
- name: Miner | Facts | Pools | Set GPU to Etherpool Eth - name: Miner | Facts | Pools | Set GPU to Etherpool Eth
set_fact: ansible.builtin.set_fact:
gpu_pool: "{{ ethermine_eth }}" gpu_pool: "{{ ethermine_eth }}"
when: nanominer_gpu == "eth" and nanominer_gpu_pool == "etherpool" when: nanominer_gpu == "eth" and nanominer_gpu_pool == "etherpool"
- name: Miner | Facts | Pools | Set GPU to F2Pool Eth - name: Miner | Facts | Pools | Set GPU to F2Pool Eth
set_fact: ansible.builtin.set_fact:
gpu_pool: "{{ f2pool_eth }}" gpu_pool: "{{ f2pool_eth }}"
when: nanominer_gpu == "eth" and nanominer_gpu_pool == "f2pool" when: nanominer_gpu == "eth" and nanominer_gpu_pool == "f2pool"
## Validate ## ## Validate ##
+7 -7
View File
@@ -4,21 +4,21 @@
## Global ## ## Global ##
- name: Miner | Facts | System | Global 1 - name: Miner | Facts | System | Global 1
set_fact: ansible.builtin.set_fact:
file_server: '{{ user }}@leet' file_server: '{{ user }}@leet'
check_alive_start: "[[ `ps -ef | grep -v 'grep' | grep -v '/bin/sh -c' | grep -v $$ | grep -c '" check_alive_start: "[[ `ps -ef | grep -v 'grep' | grep -v '/bin/sh -c' | grep -v $$ | grep -c '"
check_alive_end: "'` == '0' ]] &&" check_alive_end: "'` == '0' ]] &&"
combined_log_file: "{{ user_mfn.home }}/log.txt" combined_log_file: "{{ user_mfn.home }}/log.txt"
- name: Miner | Facts | System | Global 2 - name: Miner | Facts | System | Global 2
set_fact: ansible.builtin.set_fact:
use_combined_log_file: ">> {{ combined_log_file }} 2>&1" use_combined_log_file: ">> {{ combined_log_file }} 2>&1"
## Config File ## ## Config File ##
- name: Miner | Facts | System | My Config File - name: Miner | Facts | System | My Config File
set_fact: ansible.builtin.set_fact:
config_file_remote: "InstallFiles/Miners/miner.ini" config_file_remote: "InstallFiles/Miners/miner.ini"
config_file_local: "{{ user_mfn.home }}/miner.ini" config_file_local: "{{ user_mfn.home }}/miner.ini"
config_section_wallet: wallet config_section_wallet: wallet
@@ -31,20 +31,20 @@
## Nanominer ## ## Nanominer ##
- name: Miner | Facts | System | nanominer 1 - name: Miner | Facts | System | nanominer 1
set_fact: ansible.builtin.set_fact:
nanominer_home: "{{ user_mfn.home }}/nanominer" nanominer_home: "{{ user_mfn.home }}/nanominer"
nanominer_version: "3.4.3" # Download link: https://github.com/nanopool/nanominer/releases nanominer_version: "3.4.3" # Download link: https://github.com/nanopool/nanominer/releases
nanominer_script: "{{ user_mfn.home }}/nanominer.sh" nanominer_script: "{{ user_mfn.home }}/nanominer.sh"
- name: Miner | Facts | System | nanominer 2 - name: Miner | Facts | System | nanominer 2
set_fact: ansible.builtin.set_fact:
nanominer_bin: "{{ nanominer_home }}/nanominer-linux-{{ nanominer_version }}" nanominer_bin: "{{ nanominer_home }}/nanominer-linux-{{ nanominer_version }}"
nanominer_tar_remote: "InstallFiles/Miners/nanominer/*{{ nanominer_version }}*.tar.gz" nanominer_tar_remote: "InstallFiles/Miners/nanominer/*{{ nanominer_version }}*.tar.gz"
nanominer_config: "{{ nanominer_home }}/config.ini" nanominer_config: "{{ nanominer_home }}/config.ini"
nanominer_logs: "{{ nanominer_home}}/logs" nanominer_logs: "{{ nanominer_home}}/logs"
- name: Miner | Facts | System | nanominer 3 - name: Miner | Facts | System | nanominer 3
set_fact: ansible.builtin.set_fact:
nanominer_tar_local: "{{ nanominer_bin }}.tar.gz" nanominer_tar_local: "{{ nanominer_bin }}.tar.gz"
nanominer_exec: "{{ nanominer_bin }}/nanominer" nanominer_exec: "{{ nanominer_bin }}/nanominer"
@@ -52,7 +52,7 @@
## Miner Array ## ## Miner Array ##
- name: Miner | Facts | System | Miner Array - name: Miner | Facts | System | Miner Array
set_fact: ansible.builtin.set_fact:
miners: miners:
- { "name": "xmr_stak_cpu", "enabled": '{{ (xmr_stak_cpu != false) }}', "command": "{{ user_mfn.home }}/xmr_stak_cpu.sh {{ use_combined_log_file }}" } - { "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 }}" } - { "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. # System related variables.
- name: Facts | Server | System | FreeBSD - name: Facts | Server | System | FreeBSD
set_fact: ansible.builtin.set_fact:
ansible_python_interpreter: "/usr/local/bin/python3.8" ansible_python_interpreter: "/usr/local/bin/python3.8"
when: ansible_system == "FreeBSD" when: ansible_system == "FreeBSD"
+15 -15
View File
@@ -3,14 +3,14 @@
# This is only for Workstation devices with UIs. # This is only for Workstation devices with UIs.
- name: Workstation | Facts | Packages | Parrot OS Fixes - name: Workstation | Facts | Packages | Parrot OS Fixes
set_fact: ansible.builtin.set_fact:
ansible_pkg_mgr: "apt" ansible_pkg_mgr: "apt"
ansible_python_interpreter: "/usr/bin/python3" ansible_python_interpreter: "/usr/bin/python3"
when: ansible_distribution == "Parrot OS" when: ansible_distribution == "Parrot OS"
- name: Workstation | Facts | Package | Consistent - name: Workstation | Facts | Package | Consistent
set_fact: ansible.builtin.set_fact:
firefox: firefox firefox: firefox
firefox_esr: firefox-esr firefox_esr: firefox-esr
thunderbird: thunderbird thunderbird: thunderbird
@@ -61,7 +61,7 @@
- name: Workstation | Facts | Package | apt (All Distros) - name: Workstation | Facts | Package | apt (All Distros)
set_fact: ansible.builtin.set_fact:
xz: xz-utils xz: xz-utils
mesa: libglu1-mesa mesa: libglu1-mesa
mesa_utils: libglu1-mesa mesa_utils: libglu1-mesa
@@ -81,45 +81,45 @@
when: ansible_pkg_mgr == "apt" when: ansible_pkg_mgr == "apt"
- name: Workstation | Facts | Package | Pop_OS! - name: Workstation | Facts | Package | Pop_OS!
set_fact: ansible.builtin.set_fact:
flatpak_distro: true flatpak_distro: true
firefox_esr: firefox firefox_esr: firefox
when: ansible_distribution == "Pop!_OS" when: ansible_distribution == "Pop!_OS"
- name: Workstation | Facts | Package | Ubuntu - name: Workstation | Facts | Package | Ubuntu
set_fact: ansible.builtin.set_fact:
flatpak_distro: true flatpak_distro: true
firefox_esr: firefox firefox_esr: firefox
dmenu: suckless-tools dmenu: suckless-tools
when: ansible_distribution == "Ubuntu" when: ansible_distribution == "Ubuntu"
- name: Workstation | Facts | Package | Debian & Devuan - name: Workstation | Facts | Package | Debian & Devuan
set_fact: ansible.builtin.set_fact:
flatpak_distro: true flatpak_distro: true
dmenu: suckless-tools dmenu: suckless-tools
firefox: firefox-esr firefox: firefox-esr
when: ansible_distribution in ("Debian", "Devuan") when: ansible_distribution in ("Debian", "Devuan")
- name: Workstation | Facts | Package | Mint - name: Workstation | Facts | Package | Mint
set_fact: ansible.builtin.set_fact:
flatpak_distro: true flatpak_distro: true
firefox_esr: firefox firefox_esr: firefox
when: ansible_distribution == "Linux Mint" when: ansible_distribution == "Linux Mint"
- name: Workstation | Facts | Package | Parrot OS - name: Workstation | Facts | Package | Parrot OS
set_fact: ansible.builtin.set_fact:
flatpak_distro: true flatpak_distro: true
when: ansible_distribution == "Parrot OS" when: ansible_distribution == "Parrot OS"
- name: Workstation | Facts | Package | Apt w/o LibVirt - name: Workstation | Facts | Package | Apt w/o LibVirt
set_fact: ansible.builtin.set_fact:
gnome_boxes: htop gnome_boxes: htop
when: ansible_pkg_mgr == "apt" when: ansible_pkg_mgr == "apt"
and ansible_service_mgr not in ("systemd", "sysvinit") and ansible_service_mgr not in ("systemd", "sysvinit")
- name: Workstation | Facts | Package | pacman (All Distros) - name: Workstation | Facts | Package | pacman (All Distros)
set_fact: ansible.builtin.set_fact:
macbook_wifi_driver: broadcom-wl-dkms macbook_wifi_driver: broadcom-wl-dkms
android_jdk: jdk-openjdk android_jdk: jdk-openjdk
android_fastboot: android-tools android_fastboot: android-tools
@@ -128,7 +128,7 @@
when: ansible_pkg_mgr == "pacman" when: ansible_pkg_mgr == "pacman"
- name: Workstation | Facts | Package | Arch / Manjaro / Artix - name: Workstation | Facts | Package | Arch / Manjaro / Artix
set_fact: ansible.builtin.set_fact:
flatpak_distro: true flatpak_distro: true
psutil: python-psutil psutil: python-psutil
#appimagelauncher: appimagelauncher # No longer in the repos, AUR. #appimagelauncher: appimagelauncher # No longer in the repos, AUR.
@@ -139,7 +139,7 @@
- name: Workstation | Facts | Package | FreeBSD - name: Workstation | Facts | Package | FreeBSD
set_fact: ansible.builtin.set_fact:
flatpak_distro: false flatpak_distro: false
psutil: py38-psutil psutil: py38-psutil
ansible_python_interpreter: "/usr/local/bin/python3.8" ansible_python_interpreter: "/usr/local/bin/python3.8"
@@ -149,7 +149,7 @@
- name: Workstation | Facts | Package | Fedora - name: Workstation | Facts | Package | Fedora
set_fact: ansible.builtin.set_fact:
flatpak_distro: true flatpak_distro: true
firefox_esr: firefox firefox_esr: firefox
font_awesome: python3-XStatic-Font-Awesome font_awesome: python3-XStatic-Font-Awesome
@@ -159,7 +159,7 @@
- name: Workstation | Facts | Package | openSUSE - name: Workstation | Facts | Package | openSUSE
set_fact: ansible.builtin.set_fact:
flatpak_distro: true flatpak_distro: true
firefox_esr: firefox-esr-branding-openSUSE firefox_esr: firefox-esr-branding-openSUSE
font_awesome: fontawesome-fonts font_awesome: fontawesome-fonts
@@ -168,6 +168,6 @@
- name: Workstation | Facts | Package | NixOS - name: Workstation | Facts | Package | NixOS
set_fact: ansible.builtin.set_fact:
flatpak_distro: false flatpak_distro: false
when: ansible_distribution == "NixOS" when: ansible_distribution == "NixOS"
+12 -12
View File
@@ -2,12 +2,12 @@
# Set up directory and files for specifying software needs rather than using hosts file. # Set up directory and files for specifying software needs rather than using hosts file.
- name: General | Account Management | Provisioning Configuration | Variables 1 - name: General | Account Management | Provisioning Configuration | Variables 1
set_fact: ansible.builtin.set_fact:
prov_dir: "/usr/local/etc/hyperling-scm" prov_dir: "/usr/local/etc/hyperling-scm"
provision_variables: [] provision_variables: []
- name: General | Account Management | Provisioning Configuration | Variables 2 - name: General | Account Management | Provisioning Configuration | Variables 2
set_fact: ansible.builtin.set_fact:
gen_file: "{{ prov_dir }}/general.ini" gen_file: "{{ prov_dir }}/general.ini"
wrk_file: "{{ prov_dir }}/workstation.ini" wrk_file: "{{ prov_dir }}/workstation.ini"
mnr_file: "{{ prov_dir }}/miner.ini" mnr_file: "{{ prov_dir }}/miner.ini"
@@ -150,7 +150,7 @@
backup: true backup: true
- name: General | Account Management | Provisioning Configuration | General | Load - name: General | Account Management | Provisioning Configuration | General | Load
set_fact: ansible.builtin.set_fact:
provision: "{{ lookup('ini', 'enable file={{gen_file}} default=false') | bool }}" provision: "{{ lookup('ini', 'enable file={{gen_file}} default=false') | bool }}"
user: "{{ lookup('ini', 'user file={{gen_file}} default=ling') }}" user: "{{ lookup('ini', 'user file={{gen_file}} default=ling') }}"
user_desc: "{{ lookup('ini', 'user_desc file={{gen_file}} default=Hyperling') }}" user_desc: "{{ lookup('ini', 'user_desc file={{gen_file}} default=Hyperling') }}"
@@ -175,12 +175,12 @@
prod_data_dir: "{{ lookup('ini', 'prod_data_dir file={{gen_file}} default=/srv/sftp') }}" prod_data_dir: "{{ lookup('ini', 'prod_data_dir file={{gen_file}} default=/srv/sftp') }}"
- name: General | Account Management | Provisioning Configuration | General | Boolean Check | Swap Block - name: General | Account Management | Provisioning Configuration | General | Boolean Check | Swap Block
set_fact: ansible.builtin.set_fact:
swap_block: "{{ swap_block | bool }}" swap_block: "{{ swap_block | bool }}"
when: swap_block in ("true", "false") when: swap_block in ("true", "false")
- name: General | Account Management | Provisioning Configuration | General | List - name: General | Account Management | Provisioning Configuration | General | List
set_fact: ansible.builtin.set_fact:
provision_variables: "{{ provision_variables | combine(item) }}" provision_variables: "{{ provision_variables | combine(item) }}"
loop: loop:
- { 'provision': "{{ provision }}" } - { 'provision': "{{ provision }}" }
@@ -250,7 +250,7 @@
backup: true backup: true
- name: General | Account Management | Provisioning Configuration | Workstation | Load - name: General | Account Management | Provisioning Configuration | Workstation | Load
set_fact: ansible.builtin.set_fact:
workstation: "{{ lookup('ini', 'enable file={{wrk_file}} default=false') | bool }}" workstation: "{{ lookup('ini', 'enable file={{wrk_file}} default=false') | bool }}"
coding: "{{ lookup('ini', 'coding file={{wrk_file}} default=false') | bool }}" coding: "{{ lookup('ini', 'coding file={{wrk_file}} default=false') | bool }}"
sdks: "{{ lookup('ini', 'sdks file={{wrk_file}} default=false') | bool }}" sdks: "{{ lookup('ini', 'sdks file={{wrk_file}} default=false') | bool }}"
@@ -263,12 +263,12 @@
redmode: "{{ lookup('ini', 'redmode file={{wrk_file}} default=true' ) | bool }}" redmode: "{{ lookup('ini', 'redmode file={{wrk_file}} default=true' ) | bool }}"
- name: General | Account Management | Provisioning Configuration | Workstation | Boolean Check | Editing - name: General | Account Management | Provisioning Configuration | Workstation | Boolean Check | Editing
set_fact: ansible.builtin.set_fact:
editing: "{{ editing | bool }}" editing: "{{ editing | bool }}"
when: editing in ("true", "false") when: editing in ("true", "false")
- name: General | Account Management | Provisioning Configuration | Workstation | List - name: General | Account Management | Provisioning Configuration | Workstation | List
set_fact: ansible.builtin.set_fact:
provision_variables: "{{ provision_variables | combine(item) }}" provision_variables: "{{ provision_variables | combine(item) }}"
loop: loop:
- { 'workstation': "{{ workstation }}" } - { 'workstation': "{{ workstation }}" }
@@ -331,7 +331,7 @@
# backup: true # backup: true
# #
#- name: General | Account Management | Provisioning Configuration | Miner | Load #- name: General | Account Management | Provisioning Configuration | Miner | Load
# set_fact: # ansible.builtin.set_fact:
# miner: "{{ lookup('ini', 'enable file={{mnr_file}} default=false') | bool }}" # miner: "{{ lookup('ini', 'enable file={{mnr_file}} default=false') | bool }}"
# amdgpu: "{{ lookup('ini', 'amdgpu file={{mnr_file}} default=false') | bool }}" # amdgpu: "{{ lookup('ini', 'amdgpu file={{mnr_file}} default=false') | bool }}"
# nanominer: "{{ lookup('ini', 'nanominer file={{mnr_file}} default=false') | bool }}" # nanominer: "{{ lookup('ini', 'nanominer file={{mnr_file}} default=false') | bool }}"
@@ -346,7 +346,7 @@
# xmr_stak_cpu: "{{ lookup('ini', 'xmr_stak_cpu file={{mnr_file}} default=false') | bool }}" # xmr_stak_cpu: "{{ lookup('ini', 'xmr_stak_cpu file={{mnr_file}} default=false') | bool }}"
# #
#- name: General | Account Management | Provisioning Configuration | Miner | List #- name: General | Account Management | Provisioning Configuration | Miner | List
# set_fact: # ansible.builtin.set_fact:
# provision_variables: "{{ provision_variables | combine(item) }}" # provision_variables: "{{ provision_variables | combine(item) }}"
# loop: # loop:
# - { 'miner': "{{ miner }}" } # - { 'miner': "{{ miner }}" }
@@ -400,7 +400,7 @@
backup: true backup: true
- name: General | Account Management | Provisioning Configuration | Server | Load - name: General | Account Management | Provisioning Configuration | Server | Load
set_fact: ansible.builtin.set_fact:
server: "{{ lookup('ini', 'enable file={{srv_file}} default=false') | bool }}" server: "{{ lookup('ini', 'enable file={{srv_file}} default=false') | bool }}"
domain: "{{ lookup('ini', 'domain file={{srv_file}} default=hyperling.com') }}" domain: "{{ lookup('ini', 'domain file={{srv_file}} default=hyperling.com') }}"
onlyoffice: "{{ lookup('ini', 'onlyoffice file={{srv_file}} default=false') | bool }}" onlyoffice: "{{ lookup('ini', 'onlyoffice file={{srv_file}} default=false') | bool }}"
@@ -411,7 +411,7 @@
hugo: "{{ lookup('ini', 'hugo file={{srv_file}} default=false') | bool }}" hugo: "{{ lookup('ini', 'hugo file={{srv_file}} default=false') | bool }}"
- name: General | Account Management | Provisioning Configuration | Server | List - name: General | Account Management | Provisioning Configuration | Server | List
set_fact: ansible.builtin.set_fact:
provision_variables: "{{ provision_variables | combine(item) }}" provision_variables: "{{ provision_variables | combine(item) }}"
loop: loop:
- { 'server': "{{ server }}" } - { 'server': "{{ server }}" }
+1 -1
View File
@@ -19,7 +19,7 @@
when: ansible_pkg_mgr == "pacman" when: ansible_pkg_mgr == "pacman"
#- name: General | Account Management | Users | Use ZSH (Arch+Manjaro) #- name: General | Account Management | Users | Use ZSH (Arch+Manjaro)
# set_fact: # ansible.builtin.set_fact:
# user_shell: "{{ zsh_exec.stdout }}" # user_shell: "{{ zsh_exec.stdout }}"
# when: ansible_pkg_mgr == "pacman" # when: ansible_pkg_mgr == "pacman"
# #
+2 -2
View File
@@ -3,14 +3,14 @@
# Install the AUR on pacman-related distros. # Install the AUR on pacman-related distros.
- name: General | Software | AUR | Facts 01 - name: General | Software | AUR | Facts 01
set_fact: ansible.builtin.set_fact:
aur_user: aurbuilder aur_user: aurbuilder
aur_build_dir: "{{ global_src }}" aur_build_dir: "{{ global_src }}"
aur_helper: yay aur_helper: yay
aur_helper_url: https://aur.archlinux.org/yay-bin.git aur_helper_url: https://aur.archlinux.org/yay-bin.git
- name: General | Software | AUR | Facts 02 - name: General | Software | AUR | Facts 02
set_fact: ansible.builtin.set_fact:
aur_helper_dir: "{{ aur_build_dir }}/{{ aur_helper }}" aur_helper_dir: "{{ aur_build_dir }}/{{ aur_helper }}"
aur_sudoers: "/etc/sudoers.d/sudoers_{{ aur_user }}" aur_sudoers: "/etc/sudoers.d/sudoers_{{ aur_user }}"
+1 -1
View File
@@ -2,7 +2,7 @@
# Install Metasploit Framework # Install Metasploit Framework
- name: General | Software | Metasploit | Facts - name: General | Software | Metasploit | Facts
set_fact: ansible.builtin.set_fact:
metasploit_installer: msfinstall metasploit_installer: msfinstall
when: ansible_system in ("Linux", "Darwin") when: ansible_system in ("Linux", "Darwin")
and pentesting and pentesting
+1 -1
View File
@@ -13,7 +13,7 @@
### ###
- name: Nix Variables - name: Nix Variables
set_fact: ansible.builtin.set_fact:
nix_exe: ~/.deleteme.nix.sh nix_exe: ~/.deleteme.nix.sh
- name: Install Nix - name: Install Nix
+2 -2
View File
@@ -3,12 +3,12 @@
# This is also done in setup.sh if ansible is not found. # This is also done in setup.sh if ansible is not found.
- name: General | Software | NixOS | Facts - name: General | Software | NixOS | Facts
set_fact: ansible.builtin.set_fact:
nixos_working_dir: ~/nixos-config-deleteme nixos_working_dir: ~/nixos-config-deleteme
nixos_working_exe: activate.sh nixos_working_exe: activate.sh
- name: General | Software | NixOS | Facts [Swap] - name: General | Software | NixOS | Facts [Swap]
set_fact: ansible.builtin.set_fact:
nixos_swap: "swapDevices = [ { device = \"{{ swap_file }}\";} ];" nixos_swap: "swapDevices = [ { device = \"{{ swap_file }}\";} ];"
when: swap_block != false when: swap_block != false
+1 -1
View File
@@ -3,7 +3,7 @@
# Preferably only on servers that don't already have postfix? # Preferably only on servers that don't already have postfix?
- name: Server | Sendmail | Variables - name: Server | Sendmail | Variables
set_fact: ansible.builtin.set_fact:
sendmail: sendmail sendmail: sendmail
sendmail_queue: sendmail_msp_queue sendmail_queue: sendmail_msp_queue
+6 -6
View File
@@ -5,7 +5,7 @@
# Variables # # Variables #
- name: General | Telegraf | Variables 1/4 - name: General | Telegraf | Variables 1/4
set_fact: ansible.builtin.set_fact:
telegraf_tar: telegraf-1.20.3_linux_amd64.tar.gz telegraf_tar: telegraf-1.20.3_linux_amd64.tar.gz
telegraf_path: /usr/local/bin telegraf_path: /usr/local/bin
telegraf_config_path: /usr/local/etc telegraf_config_path: /usr/local/etc
@@ -13,25 +13,25 @@
telegraf_log: "{{ user_ansible.home }}/telegraf.log" telegraf_log: "{{ user_ansible.home }}/telegraf.log"
- name: General | Telegraf | Variables 2/4 - name: General | Telegraf | Variables 2/4
set_fact: ansible.builtin.set_fact:
telegraf_exec: "{{ telegraf_path }}/telegraf" telegraf_exec: "{{ telegraf_path }}/telegraf"
telegraf_config: "{{ telegraf_config_path }}/telegraf.conf" telegraf_config: "{{ telegraf_config_path }}/telegraf.conf"
- name: General | Telegraf | Variables 3/4 - name: General | Telegraf | Variables 3/4
set_fact: ansible.builtin.set_fact:
telegraf_cmd: "{{ telegraf_exec }} --config {{ telegraf_config }} >> {{ telegraf_log }} 2>&1" telegraf_cmd: "{{ telegraf_exec }} --config {{ telegraf_config }} >> {{ telegraf_log }} 2>&1"
- name: General | Telegraf | Variables 4/4 - name: General | Telegraf | Variables 4/4
set_fact: ansible.builtin.set_fact:
telegraf_watcher: "killall telegraf; {{ telegraf_cmd }}" telegraf_watcher: "killall telegraf; {{ telegraf_cmd }}"
- name: General | Telegraf | Variables | Linux - name: General | Telegraf | Variables | Linux
set_fact: ansible.builtin.set_fact:
telegraf_input_temp: "[[inputs.temp]]" telegraf_input_temp: "[[inputs.temp]]"
when: ansible_system == "Linux" when: ansible_system == "Linux"
- name: General | Telegraf | Variables | FreeBSD - name: General | Telegraf | Variables | FreeBSD
set_fact: ansible.builtin.set_fact:
telegraf_input_temp: "" telegraf_input_temp: ""
when: ansible_system == "FreeBSD" when: ansible_system == "FreeBSD"
+1 -1
View File
@@ -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 | Facts - name: General | Tests | Existing Run | Facts
set_fact: ansible.builtin.set_fact:
lock_file: "/tmp/ansible-playbook.lock" lock_file: "/tmp/ansible-playbook.lock"
- name: General | Tests | Existing Run | Check - name: General | Tests | Existing Run | Check
+2 -2
View File
@@ -2,11 +2,11 @@
# Lynis hardness check. # Lynis hardness check.
- name: General | Tests | Lynis | Set Facts - name: General | Tests | Lynis | Set Facts
set_fact: ansible.builtin.set_fact:
lynis_file: "{{ user_user.home }}/Reports/{{ ansible_hostname }}.{{ lynis_report }}" lynis_file: "{{ user_user.home }}/Reports/{{ ansible_hostname }}.{{ lynis_report }}"
- name: General | Tests | Lynis | Set Facts 2 - name: General | Tests | Lynis | Set Facts 2
set_fact: ansible.builtin.set_fact:
lynis_temp_file: "{{ lynis_file }}.tmp" lynis_temp_file: "{{ lynis_file }}.tmp"
- name: General | Tests | Lynis | Install - name: General | Tests | Lynis | Install
+2 -2
View File
@@ -2,12 +2,12 @@
# Nmap port test # Nmap port test
- name: General | Tests | nmap | Set Facts - name: General | Tests | nmap | Set Facts
set_fact: ansible.builtin.set_fact:
nmap_file: "{{ user_user.home }}/Reports/{{ ansible_hostname }}.{{ nmap_report }}" nmap_file: "{{ user_user.home }}/Reports/{{ ansible_hostname }}.{{ nmap_report }}"
nmap_separator: "\n*******************************\n" nmap_separator: "\n*******************************\n"
- name: General | Tests | nmap | Set Facts 2 - name: General | Tests | nmap | Set Facts 2
set_fact: ansible.builtin.set_fact:
nmap_temp_file: "{{ nmap_file }}.tmp" nmap_temp_file: "{{ nmap_file }}.tmp"
- name: General | Tests | nmap | Create Report - name: General | Tests | nmap | Create Report
+3 -3
View File
@@ -2,18 +2,18 @@
# List all the services under the Reports folder. # List all the services under the Reports folder.
- name: General | Tests | Services | Set Facts - name: General | Tests | Services | Set Facts
set_fact: ansible.builtin.set_fact:
services_report_file: "{{ user_user.home }}/Reports/{{ ansible_hostname }}.services.txt" services_report_file: "{{ user_user.home }}/Reports/{{ ansible_hostname }}.services.txt"
services_enabled_file: "{{ user_user.home }}/Reports/{{ ansible_hostname }}.services-enabled.txt" services_enabled_file: "{{ user_user.home }}/Reports/{{ ansible_hostname }}.services-enabled.txt"
services_command: "echo 'Service Manager {{ ansible_service_mgr }} Not Recognized'" services_command: "echo 'Service Manager {{ ansible_service_mgr }} Not Recognized'"
- name: General | Tests | Services | Set Facts | SystemD - name: General | Tests | Services | Set Facts | SystemD
set_fact: ansible.builtin.set_fact:
services_command: "systemctl list-unit-files" services_command: "systemctl list-unit-files"
when: ansible_service_mgr == "systemd" when: ansible_service_mgr == "systemd"
- name: General | Tests | Services | Set Facts | runit - name: General | Tests | Services | Set Facts | runit
set_fact: ansible.builtin.set_fact:
services_command: 'for s in {{ runit_service_dir }}/*; do sv status "$s"; done' services_command: 'for s in {{ runit_service_dir }}/*; do sv status "$s"; done'
when: ansible_service_mgr == "runit" when: ansible_service_mgr == "runit"
+1 -1
View File
@@ -3,7 +3,7 @@
## Step 0/3: Dependencies ## ## Step 0/3: Dependencies ##
- name: Miner | Driver | AMDGPU | Variables - name: Miner | Driver | AMDGPU | Variables
set_fact: ansible.builtin.set_fact:
amdgpu_cron_job: AMDGPU - Need To Finish Installation amdgpu_cron_job: AMDGPU - Need To Finish Installation
amdgpu_cron_cmd: "{{ root_home.stdout }}/scm.sh" amdgpu_cron_cmd: "{{ root_home.stdout }}/scm.sh"
+4 -4
View File
@@ -59,25 +59,25 @@
when: ethminer_install.failed when: ethminer_install.failed
- name: Miner | Software | Ethminer | Default Flags - name: Miner | Software | Ethminer | Default Flags
set_fact: ansible.builtin.set_fact:
opencl_flag: "OFF" opencl_flag: "OFF"
cuda_flag: "OFF" cuda_flag: "OFF"
dbus_flag: "OFF" dbus_flag: "OFF"
sys_opencl_flag: "ON" sys_opencl_flag: "ON"
- name: Miner | Software | Ethminer | Determine OPENCL Flag - name: Miner | Software | Ethminer | Determine OPENCL Flag
set_fact: ansible.builtin.set_fact:
opencl_flag: "ON" opencl_flag: "ON"
sys_opencl_flag: "OFF" sys_opencl_flag: "OFF"
when: amdgpu when: amdgpu
- name: Miner | Software | Ethminer | Determine CUDA Flag - name: Miner | Software | Ethminer | Determine CUDA Flag
set_fact: ansible.builtin.set_fact:
cuda_flag: "ON" cuda_flag: "ON"
when: nvidia when: nvidia
- name: Miner | Software | Ethminer | Determine DBUS Flag - name: Miner | Software | Ethminer | Determine DBUS Flag
set_fact: ansible.builtin.set_fact:
dbus_flag: "ON" dbus_flag: "ON"
when: ansible_distribution == "Pop!_OS" when: ansible_distribution == "Pop!_OS"
+2 -2
View File
@@ -2,12 +2,12 @@
# Install HUGO to host sites like parrotsec.org # Install HUGO to host sites like parrotsec.org
- name: Server | Software | HUGO | Variables (apt) - name: Server | Software | HUGO | Variables (apt)
set_fact: ansible.builtin.set_fact:
hugo_package: hugo hugo_package: hugo
when: ansible_pkg_mgr == "apt" when: ansible_pkg_mgr == "apt"
- name: Server | Software | HUGO | Variables (FreeBSD) - name: Server | Software | HUGO | Variables (FreeBSD)
set_fact: ansible.builtin.set_fact:
hugo_package: gohugo hugo_package: gohugo
when: ansible_system == "FreeBSD" when: ansible_system == "FreeBSD"
+6 -6
View File
@@ -13,30 +13,30 @@
# https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip # https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip
- name: Workstation | Linux | Software | Android | Facts [01] - name: Workstation | Linux | Software | Android | Facts [01]
set_fact: ansible.builtin.set_fact:
android_url: "https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip" android_url: "https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip"
android_download_file: "{{ user_user.home }}/Downloads/android-cmdline-tools.tar.xz" android_download_file: "{{ user_user.home }}/Downloads/android-cmdline-tools.tar.xz"
android_sdk_location: "{{ user_user.home }}/SDKs/Android/Sdk" android_sdk_location: "{{ user_user.home }}/SDKs/Android/Sdk"
android_report_file: "{{ user_user.home }}/Reports/{{ ansible_hostname }}.sdk.android.txt" android_report_file: "{{ user_user.home }}/Reports/{{ ansible_hostname }}.sdk.android.txt"
- name: Workstation | Linux | Software | Android | Facts [02] - name: Workstation | Linux | Software | Android | Facts [02]
set_fact: ansible.builtin.set_fact:
android_bin_location: "{{ android_sdk_location }}/platform-tools" android_bin_location: "{{ android_sdk_location }}/platform-tools"
android_sdk_cmdline_temp: "{{ android_sdk_location }}/ansible" android_sdk_cmdline_temp: "{{ android_sdk_location }}/ansible"
android_sdk_cmdline_final: "{{ android_sdk_location }}/cmdline-tools/latest/bin" android_sdk_cmdline_final: "{{ android_sdk_location }}/cmdline-tools/latest/bin"
- name: Workstation | Linux | Software | Android | Facts [03] - name: Workstation | Linux | Software | Android | Facts [03]
set_fact: ansible.builtin.set_fact:
android_sdkmanager_temp: "{{ android_sdk_cmdline_temp }}/cmdline-tools/bin/sdkmanager" android_sdkmanager_temp: "{{ android_sdk_cmdline_temp }}/cmdline-tools/bin/sdkmanager"
android_sdkmanager_final: "{{ android_sdk_cmdline_final }}/sdkmanager" android_sdkmanager_final: "{{ android_sdk_cmdline_final }}/sdkmanager"
android_sdkmanager_final2: "{{ android_sdk_cmdline_final }}/android" android_sdkmanager_final2: "{{ android_sdk_cmdline_final }}/android"
- name: Workstation | Linux | Software | Android | Facts [04] - name: Workstation | Linux | Software | Android | Facts [04]
set_fact: ansible.builtin.set_fact:
android_sdkmanager2: "{{ android_sdkmanager_final2 }} sdk --sdk={{ android_sdk_location }}" android_sdkmanager2: "{{ android_sdkmanager_final2 }} sdk --sdk={{ android_sdk_location }}"
- name: Workstation | Linux | Software | Android | Facts [05] - name: Workstation | Linux | Software | Android | Facts [05]
set_fact: ansible.builtin.set_fact:
android_sdkmanager2_list: "{{ android_sdkmanager2 }} list" android_sdkmanager2_list: "{{ android_sdkmanager2 }} list"
android_sdkmanager2_install: "{{ android_sdkmanager2 }} install" android_sdkmanager2_install: "{{ android_sdkmanager2 }} install"
android_sdkmanager2_remove: "{{ android_sdkmanager2 }} remove" android_sdkmanager2_remove: "{{ android_sdkmanager2 }} remove"
@@ -79,7 +79,7 @@
### 14G . ### 14G .
- name: Workstation | Linux | Software | Android | Facts [Downloads] - name: Workstation | Linux | Software | Android | Facts [Downloads]
set_fact: ansible.builtin.set_fact:
android_downloads_required: android_downloads_required:
### 36 ### - Recommended by Android Studio and Flutter, deprecating August 2027. ### 36 ### - Recommended by Android Studio and Flutter, deprecating August 2027.
- build-tools/36.0.0 - build-tools/36.0.0
@@ -7,11 +7,11 @@
# Cinnamon does use some dconf though. # Cinnamon does use some dconf though.
- name: Workstation | Linux | Software | Cinnamon | Facts | Defaults - name: Workstation | Linux | Software | Cinnamon | Facts | Defaults
set_fact: ansible.builtin.set_fact:
cinnamon_package: cinnamon cinnamon_package: cinnamon
- name: Workstation | Linux | Software | Cinnamon | Facts | Debian Derivitives - name: Workstation | Linux | Software | Cinnamon | Facts | Debian Derivitives
set_fact: ansible.builtin.set_fact:
cinnamon_package: task-cinnamon-desktop cinnamon_package: task-cinnamon-desktop
when: ansible_distribution in ("Debian", "Devuan") when: ansible_distribution in ("Debian", "Devuan")
@@ -11,7 +11,7 @@
# Source: https://softhints.com/how-to-completely-remove-flatpak-linux-mint/ # Source: https://softhints.com/how-to-completely-remove-flatpak-linux-mint/
- name: Workstation | Linux | Flatpak Distro | Flatpak | Facts - name: Workstation | Linux | Flatpak Distro | Flatpak | Facts
set_fact: ansible.builtin.set_fact:
flatpak_extension: "-flatpak" flatpak_extension: "-flatpak"
## Flatpak Pre-reqs ## ## Flatpak Pre-reqs ##
@@ -31,12 +31,12 @@
## Flatpak Installs ## ## Flatpak Installs ##
- name: Workstation | Linux | Flatpak Distro | Flatpak | Variables - name: Workstation | Linux | Flatpak Distro | Flatpak | Variables
set_fact: ansible.builtin.set_fact:
flatpak_exec_dir: "{{ user_user.home }}/bin" flatpak_exec_dir: "{{ user_user.home }}/bin"
flatpak_exec: "flatpak run" flatpak_exec: "flatpak run"
- name: Workstation | Linux | Flatpak Distro | Flatpak | Arrays - name: Workstation | Linux | Flatpak Distro | Flatpak | Arrays
set_fact: ansible.builtin.set_fact:
flatpaks_generic: flatpaks_generic:
- { app: "io.gitlab.librewolf-community", name: "librewolf", extra: "" } - { app: "io.gitlab.librewolf-community", name: "librewolf", extra: "" }
- { app: "org.signal.Signal", name: "signal", extra: "" } - { app: "org.signal.Signal", name: "signal", extra: "" }
+4 -4
View File
@@ -4,22 +4,22 @@
## Facts ## ## Facts ##
- name: Workstation | Linux | Software | Flutter | Facts 1 - name: Workstation | Linux | Software | Flutter | Facts 1
set_fact: ansible.builtin.set_fact:
flutter_url: "https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.47.4-stable.tar.xz" flutter_url: "https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.47.4-stable.tar.xz"
flutter_download_file: "{{ user_user.home }}/Downloads/flutter.tar.xz" flutter_download_file: "{{ user_user.home }}/Downloads/flutter.tar.xz"
flutter_sdk_location: "{{ user_user.home }}/SDKs/Flutter" flutter_sdk_location: "{{ user_user.home }}/SDKs/Flutter"
flutter_report: "{{ user_user.home }}/Reports/{{ ansible_hostname }}.sdk.flutter.txt" flutter_report: "{{ user_user.home }}/Reports/{{ ansible_hostname }}.sdk.flutter.txt"
- name: Workstation | Linux | Software | Flutter | Facts 2 - name: Workstation | Linux | Software | Flutter | Facts 2
set_fact: ansible.builtin.set_fact:
flutter_bin_location: "{{ flutter_sdk_location }}/flutter/bin" flutter_bin_location: "{{ flutter_sdk_location }}/flutter/bin"
- name: Workstation | Linux | Software | Flutter | Facts 3 - name: Workstation | Linux | Software | Flutter | Facts 3
set_fact: ansible.builtin.set_fact:
flutter: "{{ flutter_bin_location }}/flutter" flutter: "{{ flutter_bin_location }}/flutter"
- name: Workstation | Linux | Software | Flutter | Facts 4 - name: Workstation | Linux | Software | Flutter | Facts 4
set_fact: ansible.builtin.set_fact:
flutter_report_commands: flutter_report_commands:
- "date > {{ flutter_report }}" - "date > {{ flutter_report }}"
- "{{ flutter }} --disable-analytics >> {{ flutter_report }}" - "{{ flutter }} --disable-analytics >> {{ flutter_report }}"
+2 -2
View File
@@ -9,7 +9,7 @@
block: block:
- name: Workstation | Linux | Software | Hugo | pacman | Facts - name: Workstation | Linux | Software | Hugo | pacman | Facts
set_fact: ansible.builtin.set_fact:
sass_old: ruby-sass sass_old: ruby-sass
sass_current: dart-sass sass_current: dart-sass
@@ -32,7 +32,7 @@
block: block:
- name: Workstation | Linux | Software | Hugo | npm | Facts - name: Workstation | Linux | Software | Hugo | npm | Facts
set_fact: ansible.builtin.set_fact:
sass_old: node-sass sass_old: node-sass
sass_current: sass sass_current: sass
+1 -1
View File
@@ -6,7 +6,7 @@
block: block:
- name: Workstation | Linux | Software | Java | pacman | Facts - name: Workstation | Linux | Software | Java | pacman | Facts
set_fact: ansible.builtin.set_fact:
jdk_version: 21 jdk_version: 21
jdk_dir: ~/SDKs/Java jdk_dir: ~/SDKs/Java
+1 -1
View File
@@ -16,7 +16,7 @@
# Paths # Paths
- name: Workstation | Linux | Software | Lutris | Facts - name: Workstation | Linux | Software | Lutris | Facts
set_fact: ansible.builtin.set_fact:
lutris_source_list: "/etc/apt/sources.list.d/lutris.list" lutris_source_list: "/etc/apt/sources.list.d/lutris.list"
lutris_keyfile: "/usr/share/keyrings/lutris.gpg" lutris_keyfile: "/usr/share/keyrings/lutris.gpg"
when: ansible_pkg_mgr == "apt" when: ansible_pkg_mgr == "apt"
+2 -2
View File
@@ -3,11 +3,11 @@
# Giving this DE a shot but not liking it as much as others. # Giving this DE a shot but not liking it as much as others.
- name: Workstation | Linux | Software | LXQt | Facts | Defaults - name: Workstation | Linux | Software | LXQt | Facts | Defaults
set_fact: ansible.builtin.set_fact:
lxqt_package: lxqt lxqt_package: lxqt
- name: Workstation | Linux | Software | LXQt | Facts | Debian Derivitives - name: Workstation | Linux | Software | LXQt | Facts | Debian Derivitives
set_fact: ansible.builtin.set_fact:
lxqt_package: task-lxqt-desktop lxqt_package: task-lxqt-desktop
when: ansible_distribution in ("Debian", "Devuan") when: ansible_distribution in ("Debian", "Devuan")
+1 -1
View File
@@ -11,7 +11,7 @@
block: block:
- name: Workstation | Software | NodeJS | apt | Facts - name: Workstation | Software | NodeJS | apt | Facts
set_fact: ansible.builtin.set_fact:
node_version: node_24.x node_version: node_24.x
- name: Workstation | Software | NodeJS | apt | Old | Remove - name: Workstation | Software | NodeJS | apt | Old | Remove
+4 -4
View File
@@ -6,7 +6,7 @@
## Variables ## ## Variables ##
- name: Workstation | Linux | Software | TLP | Facts - name: Workstation | Linux | Software | TLP | Facts
set_fact: ansible.builtin.set_fact:
tlp_package: "tlp" tlp_package: "tlp"
tlp_rdw: "tlp-rdw" tlp_rdw: "tlp-rdw"
tlp_smart: "smartmontools" tlp_smart: "smartmontools"
@@ -19,7 +19,7 @@
acf_service: "auto-cpufreq" acf_service: "auto-cpufreq"
- name: Workstation | Linux | Software | TLP | Facts (Artix) - name: Workstation | Linux | Software | TLP | Facts (Artix)
set_fact: ansible.builtin.set_fact:
ppd_package: "power-profiles-daemon power-profiles-daemon-runit" ppd_package: "power-profiles-daemon power-profiles-daemon-runit"
tlp_run_script: tlp-runit tlp_run_script: tlp-runit
when: ansible_pkg_mgr == "pacman" when: ansible_pkg_mgr == "pacman"
@@ -110,11 +110,11 @@
block: block:
- name: Workstation | Linux | Software | TLP | runit | Devuan | Facts 01 - name: Workstation | Linux | Software | TLP | runit | Devuan | Facts 01
set_fact: ansible.builtin.set_fact:
devuan_tlp_dir: "{{ runit_script_dir }}/{{ tlp_service }}" devuan_tlp_dir: "{{ runit_script_dir }}/{{ tlp_service }}"
- name: Workstation | Linux | Software | TLP | runit | Devuan | Facts 02 - name: Workstation | Linux | Software | TLP | runit | Devuan | Facts 02
set_fact: ansible.builtin.set_fact:
devuan_tlp_run: "{{ devuan_tlp_dir }}/run" devuan_tlp_run: "{{ devuan_tlp_dir }}/run"
- name: Workstation | Linux | Software | TLP | runit | Devuan | Create Script - name: Workstation | Linux | Software | TLP | runit | Devuan | Create Script
+5 -5
View File
@@ -43,13 +43,13 @@
block: block:
- name: Workstation | Software | VPN | Mullvad | Devuan | Facts 01 - name: Workstation | Software | VPN | Mullvad | Devuan | Facts 01
set_fact: ansible.builtin.set_fact:
devuan_mullvad_dir: "{{ global_src }}/mullvad-installer" devuan_mullvad_dir: "{{ global_src }}/mullvad-installer"
mullvad_deb_url: https://mullvad.net/en/download/app/deb/latest mullvad_deb_url: https://mullvad.net/en/download/app/deb/latest
mullvad_repack_url: https://github.com/sys-fs/mullvad-repack mullvad_repack_url: https://github.com/sys-fs/mullvad-repack
- name: Workstation | Software | VPN | Mullvad | Devuan | Facts 02 - name: Workstation | Software | VPN | Mullvad | Devuan | Facts 02
set_fact: ansible.builtin.set_fact:
mullvad_repack_dir: "{{ devuan_mullvad_dir }}/mullvad_repack" mullvad_repack_dir: "{{ devuan_mullvad_dir }}/mullvad_repack"
- name: Workstation | Software | VPN | Mullvad | Devuan | Check - name: Workstation | Software | VPN | Mullvad | Devuan | Check
@@ -74,16 +74,16 @@
## Link & Enable ## ## Link & Enable ##
- name: Workstation | Software | VPN | Mullvad | PATH | Facts 01 - name: Workstation | Software | VPN | Mullvad | PATH | Facts 01
set_fact: ansible.builtin.set_fact:
mullvad_exe: 'mullvad-vpn' mullvad_exe: 'mullvad-vpn'
mullvad_exe_dir: '/opt/Mullvad\ VPN' mullvad_exe_dir: '/opt/Mullvad\ VPN'
- name: Workstation | Software | VPN | Mullvad | PATH | Facts 02 - name: Workstation | Software | VPN | Mullvad | PATH | Facts 02
set_fact: ansible.builtin.set_fact:
mullvad_exe_new: "{{ global_bin }}/{{ mullvad_exe }}" mullvad_exe_new: "{{ global_bin }}/{{ mullvad_exe }}"
- name: Workstation | Software | VPN | Mullvad | PATH | Facts (pacman) - name: Workstation | Software | VPN | Mullvad | PATH | Facts (pacman)
set_fact: ansible.builtin.set_fact:
mullvad_exe_dir: '/usr/bin' mullvad_exe_dir: '/usr/bin'
when: ansible_pkg_mgr == "pacman" when: ansible_pkg_mgr == "pacman"
@@ -15,7 +15,7 @@
# Paths # Paths
- name: Workstation | Linux | Software | VS Codium | Facts - name: Workstation | Linux | Software | VS Codium | Facts
set_fact: ansible.builtin.set_fact:
vscodium_source_list: "/etc/apt/sources.list.d/vscodium.list" vscodium_source_list: "/etc/apt/sources.list.d/vscodium.list"
vscodium_keyfile: "/usr/share/keyrings/vscodium.gpg" vscodium_keyfile: "/usr/share/keyrings/vscodium.gpg"
@@ -5,7 +5,7 @@
# Temporarily removed while it's broken: # Temporarily removed while it's broken:
# , 'com.vscodium.codium.desktop', 'codium.desktop' # , 'com.vscodium.codium.desktop', 'codium.desktop'
- name: Workstation | Account Management | Cinnamon | Facts - name: Workstation | Account Management | Cinnamon | Facts
set_fact: ansible.builtin.set_fact:
# Only do multiple entries per line if they are for the same exact program. # Only do multiple entries per line if they are for the same exact program.
cinnamon_favorites: "[ 'org.gnome.Terminal.desktop' cinnamon_favorites: "[ 'org.gnome.Terminal.desktop'
, 'org.gnome.Console.desktop' , 'org.gnome.Console.desktop'
@@ -47,12 +47,12 @@
#, 'chat.simplex.simplex.desktop' #, 'chat.simplex.simplex.desktop'
- name: Workstation | Account Management | Cinnamon | Facts (NixOS) - name: Workstation | Account Management | Cinnamon | Facts (NixOS)
set_fact: ansible.builtin.set_fact:
dconf_terminal: kgx dconf_terminal: kgx
when: ansible_distribution in ("NixOS") when: ansible_distribution in ("NixOS")
- name: Workstation | Account Management | Cinnamon | Facts (Ubuntu) - name: Workstation | Account Management | Cinnamon | Facts (Ubuntu)
set_fact: ansible.builtin.set_fact:
dconf_theme: Yaru-purple-dark dconf_theme: Yaru-purple-dark
dconf_icons: Yaru-purple-dark dconf_icons: Yaru-purple-dark
when: ansible_distribution in ("Ubuntu") when: ansible_distribution in ("Ubuntu")
+7 -7
View File
@@ -4,7 +4,7 @@
# Temporarily removed while it's broken: # Temporarily removed while it's broken:
# , 'com.vscodium.codium.desktop', 'codium.desktop' # , 'com.vscodium.codium.desktop', 'codium.desktop'
- name: Workstation | Account Management | GNOME | Facts - name: Workstation | Account Management | GNOME | Facts
set_fact: ansible.builtin.set_fact:
# Only do multiple entries per line if they are for the same exact program. # Only do multiple entries per line if they are for the same exact program.
gnome_favorites: "[ 'org.gnome.Terminal.desktop' gnome_favorites: "[ 'org.gnome.Terminal.desktop'
, 'org.gnome.Console.desktop' , 'org.gnome.Console.desktop'
@@ -46,12 +46,12 @@
#, 'chat.simplex.simplex.desktop' #, 'chat.simplex.simplex.desktop'
- name: Workstation | Account Management | GNOME | Facts (NixOS) - name: Workstation | Account Management | GNOME | Facts (NixOS)
set_fact: ansible.builtin.set_fact:
dconf_terminal: kgx dconf_terminal: kgx
when: ansible_distribution in ("NixOS") when: ansible_distribution in ("NixOS")
- name: Workstation | Account Management | GNOME | Facts (Ubuntu) - name: Workstation | Account Management | GNOME | Facts (Ubuntu)
set_fact: ansible.builtin.set_fact:
dconf_theme: Yaru-purple-dark dconf_theme: Yaru-purple-dark
dconf_icons: Yaru-purple-dark dconf_icons: Yaru-purple-dark
when: ansible_distribution in ("Ubuntu") when: ansible_distribution in ("Ubuntu")
@@ -121,7 +121,7 @@
# https://ansible-docs.readthedocs.io/zh/stable-2.0/rst/playbooks_filters.html#filters-for-formatting-data # https://ansible-docs.readthedocs.io/zh/stable-2.0/rst/playbooks_filters.html#filters-for-formatting-data
- name: Workstation | Account Management | GNOME | Dash To Dock | Variables 1 - name: Workstation | Account Management | GNOME | Dash To Dock | Variables 1
set_fact: ansible.builtin.set_fact:
gnome_enabled_extensions: "{{ gnome_enabled_extensions.value | replace('@as ', '') }}" gnome_enabled_extensions: "{{ gnome_enabled_extensions.value | replace('@as ', '') }}"
dash_to_dock_ext_comma: "" dash_to_dock_ext_comma: ""
when: ansible_distribution not in ("Ubuntu") and dash_to_dock_exists.failed when: ansible_distribution not in ("Ubuntu") and dash_to_dock_exists.failed
@@ -132,17 +132,17 @@
when: ansible_distribution not in ("Ubuntu") and dash_to_dock_exists.failed when: ansible_distribution not in ("Ubuntu") and dash_to_dock_exists.failed
- name: Workstation | Account Management | GNOME | Dash To Dock | Variables 2 - name: Workstation | Account Management | GNOME | Dash To Dock | Variables 2
set_fact: ansible.builtin.set_fact:
dash_to_dock_ext_comma: ", " dash_to_dock_ext_comma: ", "
when: ansible_distribution not in ("Ubuntu") and dash_to_dock_exists.failed and gnome_enabled_extensions not in ("[]", [], "None") when: ansible_distribution not in ("Ubuntu") and dash_to_dock_exists.failed and gnome_enabled_extensions not in ("[]", [], "None")
- name: Workstation | Account Management | GNOME | Dash To Dock | Variables 3 - name: Workstation | Account Management | GNOME | Dash To Dock | Variables 3
set_fact: ansible.builtin.set_fact:
dash_to_dock_ext_name: "{{ dash_to_dock_ext_comma }}'dash-to-dock@micxgx.gmail.com']" dash_to_dock_ext_name: "{{ dash_to_dock_ext_comma }}'dash-to-dock@micxgx.gmail.com']"
when: ansible_distribution not in ("Ubuntu") and dash_to_dock_exists.failed when: ansible_distribution not in ("Ubuntu") and dash_to_dock_exists.failed
- name: Workstation | Account Management | GNOME | Dash To Dock | Variables 4 - name: Workstation | Account Management | GNOME | Dash To Dock | Variables 4
set_fact: ansible.builtin.set_fact:
gnome_enabled_extensions: "[]" gnome_enabled_extensions: "[]"
when: ansible_distribution not in ("Ubuntu") and dash_to_dock_exists.failed and gnome_enabled_extensions == "None" when: ansible_distribution not in ("Ubuntu") and dash_to_dock_exists.failed and gnome_enabled_extensions == "None"
+2 -2
View File
@@ -2,12 +2,12 @@
# Mount network shares. # Mount network shares.
- name: Workstation | Settings | NFS | Facts (Linux) - name: Workstation | Settings | NFS | Facts (Linux)
set_fact: ansible.builtin.set_fact:
mount_options: defaults,_netdev mount_options: defaults,_netdev
when: ansible_system == "Linux" when: ansible_system == "Linux"
- name: Workstation | Settings | NFS | Facts (FreeBSD) - name: Workstation | Settings | NFS | Facts (FreeBSD)
set_fact: ansible.builtin.set_fact:
mount_options: rw mount_options: rw
when: ansible_system == "FreeBSD" when: ansible_system == "FreeBSD"
@@ -2,7 +2,7 @@
# Copy everything from PROJECT/files/templates/ to User's home. # Copy everything from PROJECT/files/templates/ to User's home.
- name: Workstation | Settings | Templates | Variables - name: Workstation | Settings | Templates | Variables
set_fact: ansible.builtin.set_fact:
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
+6 -6
View File
@@ -6,7 +6,7 @@
# it doesn´t even matter if both are installed!! # it doesn´t even matter if both are installed!!
- name: Workstation | Shared | Software | i3 | Facts 01 - name: Workstation | Shared | Software | i3 | Facts 01
set_fact: ansible.builtin.set_fact:
i3_config: "settings/i3.config" i3_config: "settings/i3.config"
i3_config_dir: "{{ user_user.home }}/.config/i3" i3_config_dir: "{{ user_user.home }}/.config/i3"
i3_package: i3 i3_package: i3
@@ -24,11 +24,11 @@
i3_redshift_gui: redshift-gtk i3_redshift_gui: redshift-gtk
- name: Workstation | Shared | Software | i3 | Facts 02 - name: Workstation | Shared | Software | i3 | Facts 02
set_fact: ansible.builtin.set_fact:
i3_config_file: "{{ i3_config_dir }}/config" i3_config_file: "{{ i3_config_dir }}/config"
- name: Workstation | Shared | Software | i3 | Facts | non-apt - name: Workstation | Shared | Software | i3 | Facts | non-apt
set_fact: ansible.builtin.set_fact:
i3_theme01: htop i3_theme01: htop
i3_theme02: htop i3_theme02: htop
i3_theme03: htop i3_theme03: htop
@@ -36,7 +36,7 @@
when: ansible_pkg_mgr != "apt" when: ansible_pkg_mgr != "apt"
- name: Workstation | Shared | Software | i3 | Facts | yay - name: Workstation | Shared | Software | i3 | Facts | yay
set_fact: ansible.builtin.set_fact:
i3_yay_packages: i3_yay_packages:
- greybird-gtk-theme - greybird-gtk-theme
#- enlightenment-arc-theme #- enlightenment-arc-theme
@@ -44,7 +44,7 @@
when: ansible_pkg_mgr == "pacman" when: ansible_pkg_mgr == "pacman"
#- name: Workstation | Shared | Software | i3 | Facts | TBD #- name: Workstation | Shared | Software | i3 | Facts | TBD
# set_fact: # ansible.builtin.set_fact:
# i3_package: i3-wm # i3_package: i3-wm
# when: ansible_distribution in ("TBD") # when: ansible_distribution in ("TBD")
@@ -130,7 +130,7 @@
# msg: "{{ i3_light_device_check }}" # msg: "{{ i3_light_device_check }}"
- name: Workstation | Shared | Software | i3 | Light | Pull Backlight Name - name: Workstation | Shared | Software | i3 | Light | Pull Backlight Name
set_fact: ansible.builtin.set_fact:
i3_light_device_name: "{{ i3_light_device_check.files[0].path | basename }}" i3_light_device_name: "{{ i3_light_device_check.files[0].path | basename }}"
ignore_errors: true ignore_errors: true