Compare commits
6
Commits
1845c8da63
...
b306064061
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b306064061 | ||
|
|
ab09a74bf2 | ||
|
|
45e1331ce8 | ||
|
|
4fa346bd8b | ||
|
|
547112c4a1 | ||
|
|
688ee6cb1c |
No files matched your search
+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"
|
||||
@@ -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}}') }}"
|
||||
|
||||
|
||||
@@ -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 ##
|
||||
|
||||
@@ -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 }}" }
|
||||
|
||||
@@ -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"
|
||||
@@ -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"
|
||||
@@ -2,19 +2,19 @@
|
||||
# Set up directory and files for specifying software needs rather than using hosts file.
|
||||
|
||||
- name: General | Account Management | Provisioning Configuration | Variables 1
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
prov_dir: "/usr/local/etc/hyperling-scm"
|
||||
provision_variables: []
|
||||
|
||||
- name: General | Account Management | Provisioning Configuration | Variables 2
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
gen_file: "{{ prov_dir }}/general.ini"
|
||||
wrk_file: "{{ prov_dir }}/workstation.ini"
|
||||
mnr_file: "{{ prov_dir }}/miner.ini"
|
||||
srv_file: "{{ prov_dir }}/server.ini"
|
||||
|
||||
- name: General | Account Management | Provisioning Configuration | Create Directory
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ prov_dir }}"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
@@ -23,7 +23,7 @@
|
||||
## General ##
|
||||
|
||||
- name: General | Account Management | Provisioning Configuration | General | Create
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ gen_file }}"
|
||||
block: |
|
||||
; Please note that all portions require lowercase keys and values.
|
||||
@@ -150,7 +150,7 @@
|
||||
backup: true
|
||||
|
||||
- name: General | Account Management | Provisioning Configuration | General | Load
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
provision: "{{ lookup('ini', 'enable file={{gen_file}} default=false') | bool }}"
|
||||
user: "{{ lookup('ini', 'user file={{gen_file}} default=ling') }}"
|
||||
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') }}"
|
||||
|
||||
- name: General | Account Management | Provisioning Configuration | General | Boolean Check | Swap Block
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
swap_block: "{{ swap_block | bool }}"
|
||||
when: swap_block in ("true", "false")
|
||||
|
||||
- name: General | Account Management | Provisioning Configuration | General | List
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
provision_variables: "{{ provision_variables | combine(item) }}"
|
||||
loop:
|
||||
- { 'provision': "{{ provision }}" }
|
||||
@@ -210,7 +210,7 @@
|
||||
## Workstation ##
|
||||
|
||||
- name: General | Account Management | Provisioning Configuration | Workstation | Create
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ wrk_file }}"
|
||||
block: |
|
||||
;;;;;;; Available options - all require lowercase values ;;;;;;
|
||||
@@ -250,7 +250,7 @@
|
||||
backup: true
|
||||
|
||||
- name: General | Account Management | Provisioning Configuration | Workstation | Load
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
workstation: "{{ lookup('ini', 'enable 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 }}"
|
||||
@@ -263,12 +263,12 @@
|
||||
redmode: "{{ lookup('ini', 'redmode file={{wrk_file}} default=true' ) | bool }}"
|
||||
|
||||
- name: General | Account Management | Provisioning Configuration | Workstation | Boolean Check | Editing
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
editing: "{{ editing | bool }}"
|
||||
when: editing in ("true", "false")
|
||||
|
||||
- name: General | Account Management | Provisioning Configuration | Workstation | List
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
provision_variables: "{{ provision_variables | combine(item) }}"
|
||||
loop:
|
||||
- { 'workstation': "{{ workstation }}" }
|
||||
@@ -286,7 +286,7 @@
|
||||
### Miner ##
|
||||
#
|
||||
#- name: General | Account Management | Provisioning Configuration | Miner | Create
|
||||
# blockinfile:
|
||||
# ansible.builtin.blockinfile:
|
||||
# path: "{{ mnr_file }}"
|
||||
# block: |
|
||||
# ;;;;;;; Available options - all require lowercase values ;;;;;;
|
||||
@@ -331,7 +331,7 @@
|
||||
# backup: true
|
||||
#
|
||||
#- name: General | Account Management | Provisioning Configuration | Miner | Load
|
||||
# set_fact:
|
||||
# ansible.builtin.set_fact:
|
||||
# miner: "{{ lookup('ini', 'enable 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 }}"
|
||||
@@ -346,7 +346,7 @@
|
||||
# xmr_stak_cpu: "{{ lookup('ini', 'xmr_stak_cpu file={{mnr_file}} default=false') | bool }}"
|
||||
#
|
||||
#- name: General | Account Management | Provisioning Configuration | Miner | List
|
||||
# set_fact:
|
||||
# ansible.builtin.set_fact:
|
||||
# provision_variables: "{{ provision_variables | combine(item) }}"
|
||||
# loop:
|
||||
# - { 'miner': "{{ miner }}" }
|
||||
@@ -366,7 +366,7 @@
|
||||
## Server ##
|
||||
|
||||
- name: General | Account Management | Provisioning Configuration | Server | Create
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ srv_file }}"
|
||||
block: |
|
||||
;;;;;;; Parameters ;;;;;;
|
||||
@@ -400,7 +400,7 @@
|
||||
backup: true
|
||||
|
||||
- name: General | Account Management | Provisioning Configuration | Server | Load
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
server: "{{ lookup('ini', 'enable file={{srv_file}} default=false') | bool }}"
|
||||
domain: "{{ lookup('ini', 'domain file={{srv_file}} default=hyperling.com') }}"
|
||||
onlyoffice: "{{ lookup('ini', 'onlyoffice file={{srv_file}} default=false') | bool }}"
|
||||
@@ -411,7 +411,7 @@
|
||||
hugo: "{{ lookup('ini', 'hugo file={{srv_file}} default=false') | bool }}"
|
||||
|
||||
- name: General | Account Management | Provisioning Configuration | Server | List
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
provision_variables: "{{ provision_variables | combine(item) }}"
|
||||
loop:
|
||||
- { 'server': "{{ server }}" }
|
||||
|
||||
@@ -19,12 +19,12 @@
|
||||
when: ansible_pkg_mgr == "pacman"
|
||||
|
||||
#- name: General | Account Management | Users | Use ZSH (Arch+Manjaro)
|
||||
# set_fact:
|
||||
# ansible.builtin.set_fact:
|
||||
# user_shell: "{{ zsh_exec.stdout }}"
|
||||
# when: ansible_pkg_mgr == "pacman"
|
||||
#
|
||||
#- name: General | Account Management | Users | Allow ZSH (Arch)
|
||||
# lineinfile:
|
||||
# ansible.builtin.lineinfile:
|
||||
# path: /etc/shells
|
||||
# regexp: "{{ zsh_exec.stdout }}"
|
||||
# line: "{{ zsh_exec.stdout }}"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Copy everything from PROJECT/files/scripts/ to /usr/local/bin/.
|
||||
|
||||
- name: General | Scripts | Install | Ensure Directory Exists
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: '{{ global_bin }}'
|
||||
state: directory
|
||||
mode: '0755'
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Create file to easily push git changes and call SCM.
|
||||
|
||||
- name: General | Scripts | Root | scm.sh
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ user_root.home }}/bin/scm.sh"
|
||||
block: |
|
||||
# 20210211 - Make life easier!
|
||||
@@ -14,13 +14,13 @@
|
||||
create: true
|
||||
|
||||
- name: General | Scripts | Root | scm.sh Permissions
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ user_root.home }}/bin/scm.sh"
|
||||
mode: '0755'
|
||||
|
||||
|
||||
- name: General | Scripts | Root | scm-dev.sh
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ user_root.home }}/bin/scm-dev.sh"
|
||||
block: |
|
||||
# 20210713 - Make life easier for development!
|
||||
@@ -44,6 +44,6 @@
|
||||
create: true
|
||||
|
||||
- name: General | Scripts | Root | scm-dev.sh Permissions
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ user_root.home }}/bin/scm-dev.sh"
|
||||
mode: '0755'
|
||||
@@ -2,7 +2,7 @@
|
||||
# Create file to easily push git changes and call SCM.
|
||||
|
||||
- name: General | Scripts | User | scm.sh
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ user_user.home }}/bin/scm.sh"
|
||||
block: |
|
||||
# 20210211 - Make life easier!
|
||||
@@ -14,13 +14,13 @@
|
||||
create: true
|
||||
|
||||
- name: General | Scripts | User | scm.sh Permissions
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ user_user.home }}/bin/scm.sh"
|
||||
mode: '0755'
|
||||
|
||||
|
||||
- name: General | Scripts | User | scm-dev.sh
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ user_user.home }}/bin/scm-dev.sh"
|
||||
block: |
|
||||
# 20210713 - Make life easier for development!
|
||||
@@ -44,6 +44,6 @@
|
||||
create: true
|
||||
|
||||
- name: General | Scripts | User | scm-dev.sh Permissions
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ user_user.home }}/bin/scm-dev.sh"
|
||||
mode: '0755'
|
||||
@@ -3,7 +3,7 @@
|
||||
# Ensure the correct International AltGr keyboard setting is always chosen.
|
||||
|
||||
- name: General | Settings | Keyboard | Default Config
|
||||
lineinfile:
|
||||
ansible.builtin.lineinfile:
|
||||
path: "/etc/default/keyboard"
|
||||
regexp: '{{ item.key }}'
|
||||
line: '{{ item.value }}'
|
||||
|
||||
@@ -3,14 +3,14 @@
|
||||
# Install the AUR on pacman-related distros.
|
||||
|
||||
- name: General | Software | AUR | Facts 01
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
aur_user: aurbuilder
|
||||
aur_build_dir: "{{ global_src }}"
|
||||
aur_helper: yay
|
||||
aur_helper_url: https://aur.archlinux.org/yay-bin.git
|
||||
|
||||
- name: General | Software | AUR | Facts 02
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
aur_helper_dir: "{{ aur_build_dir }}/{{ aur_helper }}"
|
||||
aur_sudoers: "/etc/sudoers.d/sudoers_{{ aur_user }}"
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
create_home: true
|
||||
|
||||
- name: General | Software | AUR | Sudoers
|
||||
lineinfile:
|
||||
ansible.builtin.lineinfile:
|
||||
path: "{{ aur_sudoers }}"
|
||||
line: "{{ aur_user }} ALL=(ALL) NOPASSWD: /usr/bin/pacman"
|
||||
create: true
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
when: user_root.home != "" and user_user.home != ""
|
||||
|
||||
- name: General | Account Management | Users | env-shared | Permissions
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ user_user.home }}/{{ item }}"
|
||||
owner: "{{ user }}"
|
||||
group: "{{ user }}"
|
||||
|
||||
@@ -2,13 +2,13 @@
|
||||
# Install Metasploit Framework
|
||||
|
||||
- name: General | Software | Metasploit | Facts
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
metasploit_installer: msfinstall
|
||||
when: ansible_system in ("Linux", "Darwin")
|
||||
and pentesting
|
||||
|
||||
- name: General | Software | Metasploit | Check Install Status
|
||||
stat:
|
||||
ansible.builtin.stat:
|
||||
path: /usr/bin/msfconsole
|
||||
register: metasploit_status
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
###
|
||||
|
||||
- name: Nix Variables
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
nix_exe: ~/.deleteme.nix.sh
|
||||
|
||||
- name: Install Nix
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
# This is also done in setup.sh if ansible is not found.
|
||||
|
||||
- name: General | Software | NixOS | Facts
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
nixos_working_dir: ~/nixos-config-deleteme
|
||||
nixos_working_exe: activate.sh
|
||||
|
||||
- name: General | Software | NixOS | Facts [Swap]
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
nixos_swap: "swapDevices = [ { device = \"{{ swap_file }}\";} ];"
|
||||
when: swap_block != false
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
ansible.builtin.shell: "files/scripts/nixos.sh -b {{ branch }}"
|
||||
|
||||
- name: General | Software | NixOS | Create Ansible Nix Config
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: /etc/nixos/ansible.nix
|
||||
block: |
|
||||
# This file was created by https://git.hyperling.com/me/env-ansible
|
||||
|
||||
@@ -144,7 +144,7 @@
|
||||
|
||||
# Ubuntu still uses snap for critical components like GNOME, must keep.
|
||||
- name: General | Software | Packages | Disable Snap Daemon
|
||||
service:
|
||||
ansible.builtin.service:
|
||||
name: snapd
|
||||
pattern: snapd
|
||||
state: stopped
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# Preferably only on servers that don't already have postfix?
|
||||
|
||||
- name: Server | Sendmail | Variables
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
sendmail: sendmail
|
||||
sendmail_queue: sendmail_msp_queue
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
when: postfix.failed
|
||||
|
||||
- name: Server | Sendmail | Configure
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: /etc/rc.conf
|
||||
block: |
|
||||
sendmail_enable="YES"
|
||||
@@ -32,7 +32,7 @@
|
||||
when: postfix.failed and ansible_system == "FreeBSD"
|
||||
|
||||
- name: Server | Sendmail | Enable + Start | Main
|
||||
service:
|
||||
ansible.builtin.service:
|
||||
name: "{{ sendmail }}"
|
||||
pattern: "{{ sendmail }}"
|
||||
state: started
|
||||
@@ -40,7 +40,7 @@
|
||||
when: postfix.failed
|
||||
|
||||
- name: Server | Sendmail | Enable + Start | Queue
|
||||
service:
|
||||
ansible.builtin.service:
|
||||
name: "{{ sendmail_queue }}"
|
||||
pattern: "{{ sendmail_queue }}"
|
||||
state: started
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
## Cron ##
|
||||
|
||||
- name: General | Software | Services | CROND | Enable
|
||||
service:
|
||||
ansible.builtin.service:
|
||||
name: "{{ crond }}"
|
||||
pattern: "{{ crond_pattern }}"
|
||||
state: started
|
||||
@@ -17,7 +17,7 @@
|
||||
delay: 3
|
||||
|
||||
- name: General | Software | Services | CROND | Enable (runit)
|
||||
service:
|
||||
ansible.builtin.service:
|
||||
name: "{{ crond }}"
|
||||
state: started
|
||||
enabled: true
|
||||
@@ -28,7 +28,7 @@
|
||||
## SSHD ##
|
||||
|
||||
- name: General | Software | Services | SSHD | Configure
|
||||
lineinfile:
|
||||
ansible.builtin.lineinfile:
|
||||
path: "{{ sshd_config }}"
|
||||
regexp: '{{ item.key }}'
|
||||
line: '{{ item.value }} # MANAGED BY ANSIBLE'
|
||||
@@ -52,7 +52,7 @@
|
||||
- { "key": '^[\#]?PermitEmptyPasswords', "value": 'PermitEmptyPasswords no'}
|
||||
|
||||
- name: General | Software | Services | SSHD | Configure (PVE)
|
||||
lineinfile:
|
||||
ansible.builtin.lineinfile:
|
||||
path: "{{ sshd_config }}"
|
||||
regexp: '{{ item.key }}'
|
||||
line: '{{ item.value }} # MANAGED BY ANSIBLE'
|
||||
@@ -66,7 +66,7 @@
|
||||
when: "'pve' in ansible_kernel"
|
||||
|
||||
- name: General | Software | Services | SSHD | Enable
|
||||
service:
|
||||
ansible.builtin.service:
|
||||
name: "{{ sshd }}"
|
||||
pattern: "{{ sshd_pattern }}"
|
||||
state: reloaded
|
||||
@@ -91,7 +91,7 @@
|
||||
# Hehe, I use it now for a few rare things so disabling this for now.
|
||||
|
||||
#- name: General | Software | Services | Bluetooth | Disable
|
||||
# service:
|
||||
# ansible.builtin.service:
|
||||
# name: "{{ bluetooth }}"
|
||||
# pattern: "{{ bluetooth_pattern }}"
|
||||
# state: stopped
|
||||
@@ -101,7 +101,7 @@
|
||||
## NTP ##
|
||||
|
||||
- name: General | Software | Services | NTP | Enable
|
||||
service:
|
||||
ansible.builtin.service:
|
||||
name: "{{ ntp_server }}"
|
||||
pattern: "{{ ntp_server }}"
|
||||
state: started
|
||||
@@ -123,7 +123,7 @@
|
||||
## Disable ##
|
||||
|
||||
- name: General | Software | Services | Disable
|
||||
service:
|
||||
ansible.builtin.service:
|
||||
name: "{{ item.name }}"
|
||||
pattern: "{{ item.pattern }}"
|
||||
state: stopped
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
block:
|
||||
|
||||
- name: General | Software | Swap | Check For Swapfile
|
||||
stat:
|
||||
ansible.builtin.stat:
|
||||
path: "{{ swap_file }}"
|
||||
get_attributes: false
|
||||
get_checksum: false
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
# NixOS's swap setup is handled in nixos.yml when ansible.nix is created.
|
||||
- name: General | Software | Swap | Add to FSTAB
|
||||
lineinfile:
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/fstab
|
||||
regexp: '^[\#]?{{ swap_file }}'
|
||||
line: '{{ swap_file }} none swap sw 0 0'
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
# Variables #
|
||||
|
||||
- name: General | Telegraf | Variables 1/4
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
telegraf_tar: telegraf-1.20.3_linux_amd64.tar.gz
|
||||
telegraf_path: /usr/local/bin
|
||||
telegraf_config_path: /usr/local/etc
|
||||
@@ -13,25 +13,25 @@
|
||||
telegraf_log: "{{ user_ansible.home }}/telegraf.log"
|
||||
|
||||
- name: General | Telegraf | Variables 2/4
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
telegraf_exec: "{{ telegraf_path }}/telegraf"
|
||||
telegraf_config: "{{ telegraf_config_path }}/telegraf.conf"
|
||||
|
||||
- name: General | Telegraf | Variables 3/4
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
telegraf_cmd: "{{ telegraf_exec }} --config {{ telegraf_config }} >> {{ telegraf_log }} 2>&1"
|
||||
|
||||
- name: General | Telegraf | Variables 4/4
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
telegraf_watcher: "killall telegraf; {{ telegraf_cmd }}"
|
||||
|
||||
- name: General | Telegraf | Variables | Linux
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
telegraf_input_temp: "[[inputs.temp]]"
|
||||
when: ansible_system == "Linux"
|
||||
|
||||
- name: General | Telegraf | Variables | FreeBSD
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
telegraf_input_temp: ""
|
||||
when: ansible_system == "FreeBSD"
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
### ignore_errors: true
|
||||
###
|
||||
###- name: General | Telegraf | Config 2/2
|
||||
### blockinfile:
|
||||
### ansible.builtin.blockinfile:
|
||||
### path: "{{ telegraf_config }}"
|
||||
### block: |
|
||||
### [global_tags]
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
# Ensure an existing run is not active, otherwise bail.
|
||||
|
||||
- name: General | Tests | Existing Run | Facts
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
lock_file: "/tmp/ansible-playbook.lock"
|
||||
|
||||
- name: General | Tests | Existing Run | Check
|
||||
stat:
|
||||
ansible.builtin.stat:
|
||||
path: "{{ lock_file }}"
|
||||
register: lock_exists
|
||||
|
||||
|
||||
@@ -7,12 +7,12 @@
|
||||
|
||||
|
||||
- name: General | Tests | Existing Run | Lock | Create
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
name: "{{ lock_file }}"
|
||||
mode: '0777'
|
||||
|
||||
- name: General | Tests | Existing Run | Lock | Create | Check
|
||||
stat:
|
||||
ansible.builtin.stat:
|
||||
path: "{{ lock_file }}"
|
||||
register: lock_exists
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
# Ensure an existing run is not active, otherwise bail.
|
||||
|
||||
- name: General | Tests | Existing Run | Lock | Remove
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
name: "{{ lock_file }}"
|
||||
state: absent
|
||||
|
||||
- name: General | Tests | Existing Run | Lock | Remove | Check
|
||||
stat:
|
||||
ansible.builtin.stat:
|
||||
path: "{{ lock_file }}"
|
||||
register: lock_exists
|
||||
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
# Lynis hardness check.
|
||||
|
||||
- name: General | Tests | Lynis | Set Facts
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
lynis_file: "{{ user_user.home }}/Reports/{{ ansible_hostname }}.{{ lynis_report }}"
|
||||
|
||||
- name: General | Tests | Lynis | Set Facts 2
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
lynis_temp_file: "{{ lynis_file }}.tmp"
|
||||
|
||||
- name: General | Tests | Lynis | Install
|
||||
@@ -19,7 +19,7 @@
|
||||
ignore_errors: true
|
||||
|
||||
- name: General | Tests | Lynis | Ensure Permissions (Looking at you Parrot OS!)
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ lynis_install_dir }}"
|
||||
state: directory
|
||||
mode: '0644'
|
||||
@@ -28,12 +28,12 @@
|
||||
recurse: true
|
||||
|
||||
- name: General | Tests | Lynis | Ensure Permissions 2
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ lynis_install_dir }}/lynis"
|
||||
mode: '0755'
|
||||
|
||||
- name: General | Tests | Lynis | Ensure Folder Permissions
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ lynis_install_dir }}"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
@@ -49,6 +49,6 @@
|
||||
chdir: "{{ lynis_install_dir }}"
|
||||
|
||||
- name: General | Tests | Lynis | Make Report Readable
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ lynis_file }}"
|
||||
mode: '0644'
|
||||
@@ -2,12 +2,12 @@
|
||||
# Nmap port test
|
||||
|
||||
- name: General | Tests | nmap | Set Facts
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
nmap_file: "{{ user_user.home }}/Reports/{{ ansible_hostname }}.{{ nmap_report }}"
|
||||
nmap_separator: "\n*******************************\n"
|
||||
|
||||
- name: General | Tests | nmap | Set Facts 2
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
nmap_temp_file: "{{ nmap_file }}.tmp"
|
||||
|
||||
- name: General | Tests | nmap | Create Report
|
||||
@@ -25,6 +25,6 @@
|
||||
- "mv {{ nmap_temp_file }} {{ nmap_file }}"
|
||||
|
||||
- name: General | Tests | nmap | Make Viewable
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ nmap_file }}"
|
||||
mode: '0644'
|
||||
@@ -2,18 +2,18 @@
|
||||
# List all the services under the Reports folder.
|
||||
|
||||
- name: General | Tests | Services | Set Facts
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
services_report_file: "{{ user_user.home }}/Reports/{{ ansible_hostname }}.services.txt"
|
||||
services_enabled_file: "{{ user_user.home }}/Reports/{{ ansible_hostname }}.services-enabled.txt"
|
||||
services_command: "echo 'Service Manager {{ ansible_service_mgr }} Not Recognized'"
|
||||
|
||||
- name: General | Tests | Services | Set Facts | SystemD
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
services_command: "systemctl list-unit-files"
|
||||
when: ansible_service_mgr == "systemd"
|
||||
|
||||
- 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'
|
||||
when: ansible_service_mgr == "runit"
|
||||
|
||||
@@ -33,6 +33,6 @@
|
||||
when: ansible_service_mgr == "systemd"
|
||||
|
||||
- name: General | Tests | Services | Make Viewable
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ services_report_file }}"
|
||||
mode: '0644'
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
## Step 0/3: Dependencies ##
|
||||
- name: Miner | Driver | AMDGPU | Variables
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
amdgpu_cron_job: AMDGPU - Need To Finish Installation
|
||||
amdgpu_cron_cmd: "{{ root_home.stdout }}/scm.sh"
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
state: present
|
||||
|
||||
- name: Miner | Driver | AMDGPU | Set GRUB Timer
|
||||
lineinfile:
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/default/grub
|
||||
regexp: '^GRUB_TIMEOUT='
|
||||
line: 'GRUB_TIMEOUT=3'
|
||||
@@ -77,7 +77,7 @@
|
||||
when: amdgpu_install.failed and hwe_kernel.stdout != "0" and ga_kernel.failed
|
||||
|
||||
- name: Miner | Driver | AMDGPU | Prepare GRUB To Boot GA Kernel
|
||||
lineinfile:
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/default/grub
|
||||
regexp: '^GRUB_DEFAULT='
|
||||
line: 'GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 5.4.0-65-generic"'
|
||||
@@ -126,7 +126,7 @@
|
||||
|
||||
# This is to ensure we can test adding `apt install --install-recommends linux-generic` later
|
||||
- name: Miner | Driver | AMDGPU | Boot Default Kernel
|
||||
lineinfile:
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/default/grub
|
||||
regexp: '^GRUB_DEFAULT='
|
||||
line: 'GRUB_DEFAULT=0'
|
||||
|
||||
@@ -59,25 +59,25 @@
|
||||
when: ethminer_install.failed
|
||||
|
||||
- name: Miner | Software | Ethminer | Default Flags
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
opencl_flag: "OFF"
|
||||
cuda_flag: "OFF"
|
||||
dbus_flag: "OFF"
|
||||
sys_opencl_flag: "ON"
|
||||
|
||||
- name: Miner | Software | Ethminer | Determine OPENCL Flag
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
opencl_flag: "ON"
|
||||
sys_opencl_flag: "OFF"
|
||||
when: amdgpu
|
||||
|
||||
- name: Miner | Software | Ethminer | Determine CUDA Flag
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
cuda_flag: "ON"
|
||||
when: nvidia
|
||||
|
||||
- name: Miner | Software | Ethminer | Determine DBUS Flag
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
dbus_flag: "ON"
|
||||
when: ansible_distribution == "Pop!_OS"
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
# CPU #
|
||||
|
||||
- name: Miner | Software | Nanominer | Configuration | CPU | Header Info
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ nanominer_config }}"
|
||||
block: |
|
||||
[{{ item.algorithm }}]
|
||||
@@ -58,7 +58,7 @@
|
||||
when: nanominer_cpu != false
|
||||
|
||||
- name: Miner | Software | Nanominer | Configuration | CPU | Add Pools
|
||||
lineinfile:
|
||||
ansible.builtin.lineinfile:
|
||||
path: "{{ nanominer_config }}"
|
||||
line: "pool{{item.priority}} = {{ item.name }}"
|
||||
state: present
|
||||
@@ -69,7 +69,7 @@
|
||||
when: nanominer_cpu != false
|
||||
|
||||
- name: Miner | Software | Nanominer | Configuration | CPU | End Section
|
||||
lineinfile:
|
||||
ansible.builtin.lineinfile:
|
||||
path: "{{ nanominer_config }}"
|
||||
line: ";;;;;;;;;;;;; END CPU"
|
||||
state: present
|
||||
@@ -81,7 +81,7 @@
|
||||
# Add Spacing #
|
||||
|
||||
- name: Miner | Software | Nanominer | Configuration | Spacing
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ nanominer_config }}"
|
||||
block: |
|
||||
;
|
||||
@@ -97,7 +97,7 @@
|
||||
# GPU #
|
||||
|
||||
- name: Miner | Software | Nanominer | Configuration | GPU | Header Info
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ nanominer_config }}"
|
||||
block: |
|
||||
[{{ item.algorithm }}]
|
||||
@@ -127,7 +127,7 @@
|
||||
when: nanominer_gpu != false
|
||||
|
||||
- name: Miner | Software | Nanominer | Configuration | GPU | Add Pools
|
||||
lineinfile:
|
||||
ansible.builtin.lineinfile:
|
||||
path: "{{ nanominer_config }}"
|
||||
line: "pool{{item.priority}} = {{ item.name }}"
|
||||
state: present
|
||||
@@ -138,7 +138,7 @@
|
||||
when: nanominer_gpu != false
|
||||
|
||||
- name: Miner | Software | Nanominer | Configuration | GPU | End Section
|
||||
lineinfile:
|
||||
ansible.builtin.lineinfile:
|
||||
path: "{{ nanominer_config }}"
|
||||
line: ";;;;;;;;;;;;; END GPU"
|
||||
state: present
|
||||
@@ -156,7 +156,7 @@
|
||||
ignore_errors: true
|
||||
|
||||
- name: Miner | Software | Nanominer | Executable | Create
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ nanominer_script }}"
|
||||
block: |
|
||||
# 2021-02-15 - Automate nanominer script creation.
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
# Install HUGO to host sites like parrotsec.org
|
||||
|
||||
- name: Server | Software | HUGO | Variables (apt)
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
hugo_package: hugo
|
||||
when: ansible_pkg_mgr == "apt"
|
||||
|
||||
- name: Server | Software | HUGO | Variables (FreeBSD)
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
hugo_package: gohugo
|
||||
when: ansible_system == "FreeBSD"
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
# when: onlyoffice_cert.failed
|
||||
#
|
||||
#- name: Server | OnlyOffice | HTTPS | Modify Config
|
||||
# lineinfile:
|
||||
# ansible.builtin.lineinfile:
|
||||
# path: /etc/onlyoffice/documentserver/nginx/ds.conf
|
||||
# regexp: '{{ item.regexp }}'
|
||||
# line: '{{ item.line }}; # MANAGED BY ANSIBLE'
|
||||
@@ -93,7 +93,7 @@
|
||||
# Services #
|
||||
|
||||
- name: Server | OnlyOffice | HTTPS | Reload nginx
|
||||
service:
|
||||
ansible.builtin.service:
|
||||
name: nginx
|
||||
status: reloaded
|
||||
ignore_errors: true
|
||||
@@ -11,7 +11,7 @@
|
||||
ignore_errors: true
|
||||
|
||||
- name: Server | Software | Services | ACPID | Enable
|
||||
service:
|
||||
ansible.builtin.service:
|
||||
name: "{{ acpi }}"
|
||||
pattern: "{{ acpi_pattern }}"
|
||||
state: started
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
state: present
|
||||
|
||||
- name: Workstation | FreeBSD | Software | GUI | Create rc.conf Entries
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ rc_conf }}"
|
||||
marker: "# {mark} MANAGED BY ANSIBLE | GNOME Components"
|
||||
block: |
|
||||
@@ -29,7 +29,7 @@
|
||||
backup: true
|
||||
|
||||
- name: Workstation | FreeBSD | Software | GUI | Create fstab Entries
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: /etc/fstab
|
||||
block: |
|
||||
proc /proc procfs rw 0 0
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
state: present
|
||||
|
||||
- name: Workstation | FreeBSD | Software | GPU Driver | Create rc.conf Entries
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ rc_conf }}"
|
||||
marker: "# {mark} MANAGED BY ANSIBLE | GPU Components"
|
||||
block: |
|
||||
|
||||
@@ -13,30 +13,30 @@
|
||||
# https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip
|
||||
|
||||
- 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_download_file: "{{ user_user.home }}/Downloads/android-cmdline-tools.tar.xz"
|
||||
android_sdk_location: "{{ user_user.home }}/SDKs/Android/Sdk"
|
||||
android_report_file: "{{ user_user.home }}/Reports/{{ ansible_hostname }}.sdk.android.txt"
|
||||
|
||||
- name: Workstation | Linux | Software | Android | Facts [02]
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
android_bin_location: "{{ android_sdk_location }}/platform-tools"
|
||||
android_sdk_cmdline_temp: "{{ android_sdk_location }}/ansible"
|
||||
android_sdk_cmdline_final: "{{ android_sdk_location }}/cmdline-tools/latest/bin"
|
||||
|
||||
- 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_final: "{{ android_sdk_cmdline_final }}/sdkmanager"
|
||||
android_sdkmanager_final2: "{{ android_sdk_cmdline_final }}/android"
|
||||
|
||||
- name: Workstation | Linux | Software | Android | Facts [04]
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
android_sdkmanager2: "{{ android_sdkmanager_final2 }} sdk --sdk={{ android_sdk_location }}"
|
||||
|
||||
- name: Workstation | Linux | Software | Android | Facts [05]
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
android_sdkmanager2_list: "{{ android_sdkmanager2 }} list"
|
||||
android_sdkmanager2_install: "{{ android_sdkmanager2 }} install"
|
||||
android_sdkmanager2_remove: "{{ android_sdkmanager2 }} remove"
|
||||
@@ -79,7 +79,7 @@
|
||||
### 14G .
|
||||
|
||||
- name: Workstation | Linux | Software | Android | Facts [Downloads]
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
android_downloads_required:
|
||||
### 36 ### - Recommended by Android Studio and Flutter, deprecating August 2027.
|
||||
- build-tools/36.0.0
|
||||
@@ -150,7 +150,7 @@
|
||||
## Checks ##
|
||||
|
||||
- name: Workstation | Linux | Software | Android | Check SDK Manager Exists [1/2]
|
||||
stat:
|
||||
ansible.builtin.stat:
|
||||
path: "{{ android_sdkmanager_temp }}"
|
||||
get_attributes: false
|
||||
get_checksum: false
|
||||
@@ -159,7 +159,7 @@
|
||||
when: coding
|
||||
|
||||
- name: Workstation | Linux | Software | Android | Check SDK Manager Exists [2/2]
|
||||
stat:
|
||||
ansible.builtin.stat:
|
||||
path: "{{ android_sdkmanager_final }}"
|
||||
get_attributes: false
|
||||
get_checksum: false
|
||||
@@ -168,7 +168,7 @@
|
||||
when: coding
|
||||
|
||||
- name: Workstation | Linux | Software | Android | Check Download Exists
|
||||
stat:
|
||||
ansible.builtin.stat:
|
||||
path: "{{ android_download_file }}"
|
||||
get_attributes: false
|
||||
get_checksum: false
|
||||
@@ -215,7 +215,7 @@
|
||||
when: not android_download_stat.stat.exists
|
||||
|
||||
- name: Workstation | Linux | Software | Android | Create Folder
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ android_sdk_cmdline_temp }}"
|
||||
state: directory
|
||||
owner: "{{ user }}"
|
||||
@@ -235,7 +235,7 @@
|
||||
and not android_sdkmanager_temp_stat.stat.exists
|
||||
|
||||
- name: Workstation | Linux | Software | Android | Delete Archive
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ android_download_file }}"
|
||||
state: absent
|
||||
|
||||
@@ -377,7 +377,7 @@
|
||||
## Configure Environment ##
|
||||
|
||||
- name: Workstation | Linux | Software | Android | Modify PATH (.bashrc)
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ item }}/.bashrc"
|
||||
block: |
|
||||
export PATH="$PATH:{{ android_bin_location }}:{{ android_sdk_cmdline_final }}"
|
||||
@@ -394,7 +394,7 @@
|
||||
and user_user.home != ""
|
||||
|
||||
- name: Workstation | Linux | Software | Android | Modify PATH (.zshrc)
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ item }}/.zshrc"
|
||||
block: |
|
||||
export PATH="$PATH:{{ android_bin_location }}:{{ android_sdk_cmdline_final }}"
|
||||
@@ -413,7 +413,7 @@
|
||||
## Uninstall SDK ##
|
||||
|
||||
- name: Workstation | Linux | Software | Android | Remove SDK
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ android_sdk_location }}"
|
||||
state: absent
|
||||
when: not coding
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
# Cinnamon does use some dconf though.
|
||||
|
||||
- name: Workstation | Linux | Software | Cinnamon | Facts | Defaults
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
cinnamon_package: cinnamon
|
||||
|
||||
- name: Workstation | Linux | Software | Cinnamon | Facts | Debian Derivitives
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
cinnamon_package: task-cinnamon-desktop
|
||||
when: ansible_distribution in ("Debian", "Devuan")
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
# Source: https://softhints.com/how-to-completely-remove-flatpak-linux-mint/
|
||||
|
||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Facts
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
flatpak_extension: "-flatpak"
|
||||
|
||||
## Flatpak Pre-reqs ##
|
||||
@@ -31,12 +31,12 @@
|
||||
## Flatpak Installs ##
|
||||
|
||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Variables
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
flatpak_exec_dir: "{{ user_user.home }}/bin"
|
||||
flatpak_exec: "flatpak run"
|
||||
|
||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Arrays
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
flatpaks_generic:
|
||||
- { app: "io.gitlab.librewolf-community", name: "librewolf", extra: "" }
|
||||
- { app: "org.signal.Signal", name: "signal", extra: "" }
|
||||
@@ -103,7 +103,7 @@
|
||||
loop: "{{ flatpaks_generic }}"
|
||||
|
||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Generic | Executables
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
||||
block: |
|
||||
{{ item.extra }} {{ flatpak_exec }} {{ item.app }}
|
||||
@@ -118,7 +118,7 @@
|
||||
become_user: "{{ user }}"
|
||||
|
||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Generic | Executable Permissions
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
||||
state: file
|
||||
mode: '0755'
|
||||
@@ -135,7 +135,7 @@
|
||||
when: coding
|
||||
|
||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Coding | Executables
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
||||
block: |
|
||||
{{ item.extra }} {{ flatpak_exec }} {{ item.app }}
|
||||
@@ -151,7 +151,7 @@
|
||||
when: coding
|
||||
|
||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Coding | Executable Permissions
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
||||
state: file
|
||||
mode: '0755'
|
||||
@@ -167,7 +167,7 @@
|
||||
when: not coding
|
||||
|
||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Coding | Remove Executables
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
||||
state: absent
|
||||
loop: "{{ flatpaks_coding }}"
|
||||
@@ -184,7 +184,7 @@
|
||||
when: editing in (true, "video")
|
||||
|
||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Video Editors | Executables
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
||||
block: |
|
||||
{{ item.extra }} {{ flatpak_exec }} {{ item.app }}
|
||||
@@ -200,7 +200,7 @@
|
||||
when: editing in (true, "video")
|
||||
|
||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Video Editors | Executable Permissions
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
||||
state: file
|
||||
mode: '0755'
|
||||
@@ -216,7 +216,7 @@
|
||||
when: not editing in (true, "video")
|
||||
|
||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Video Editors | Remove Executables
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
||||
state: absent
|
||||
loop: "{{ flatpaks_editing_video }}"
|
||||
@@ -231,7 +231,7 @@
|
||||
when: editing in (true, "audio")
|
||||
|
||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Audio/Video Editors | Executables
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
||||
block: |
|
||||
{{ item.extra }} {{ flatpak_exec }} {{ item.app }}
|
||||
@@ -247,7 +247,7 @@
|
||||
when: editing in (true, "audio")
|
||||
|
||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Audio/Video Editors | Executable Permissions
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
||||
state: file
|
||||
mode: '0755'
|
||||
@@ -263,7 +263,7 @@
|
||||
when: not editing in (true, "audio")
|
||||
|
||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Audio/Video Editors | Remove Executables
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
||||
state: absent
|
||||
loop: "{{ flatpaks_editing_audio }}"
|
||||
@@ -280,7 +280,7 @@
|
||||
when: gaming
|
||||
|
||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Gaming | Executables
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
||||
block: |
|
||||
{{ item.extra }} {{ flatpak_exec }} {{ item.app }}
|
||||
@@ -296,7 +296,7 @@
|
||||
when: gaming
|
||||
|
||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Gaming | Executable Permissions
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
||||
state: file
|
||||
mode: '0755'
|
||||
@@ -312,7 +312,7 @@
|
||||
when: not gaming
|
||||
|
||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Gaming | Remove Executables
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
||||
state: absent
|
||||
loop: "{{ flatpaks_gaming }}"
|
||||
@@ -328,7 +328,7 @@
|
||||
loop: "{{ flatpaks_remove }}"
|
||||
|
||||
- name: Workstation | Linux | Flatpak Distro | Flatpak | Uninstalls | Remove Executables
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ flatpak_exec_dir }}/{{ item.name }}{{ flatpak_extension }}"
|
||||
state: absent
|
||||
loop: "{{ flatpaks_remove }}"
|
||||
@@ -4,22 +4,22 @@
|
||||
## Facts ##
|
||||
|
||||
- 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_download_file: "{{ user_user.home }}/Downloads/flutter.tar.xz"
|
||||
flutter_sdk_location: "{{ user_user.home }}/SDKs/Flutter"
|
||||
flutter_report: "{{ user_user.home }}/Reports/{{ ansible_hostname }}.sdk.flutter.txt"
|
||||
|
||||
- name: Workstation | Linux | Software | Flutter | Facts 2
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
flutter_bin_location: "{{ flutter_sdk_location }}/flutter/bin"
|
||||
|
||||
- name: Workstation | Linux | Software | Flutter | Facts 3
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
flutter: "{{ flutter_bin_location }}/flutter"
|
||||
|
||||
- name: Workstation | Linux | Software | Flutter | Facts 4
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
flutter_report_commands:
|
||||
- "date > {{ flutter_report }}"
|
||||
- "{{ flutter }} --disable-analytics >> {{ flutter_report }}"
|
||||
@@ -30,7 +30,7 @@
|
||||
## Checks ##
|
||||
|
||||
- name: Workstation | Linux | Software | Flutter | Check SDK Exists
|
||||
stat:
|
||||
ansible.builtin.stat:
|
||||
path: "{{ flutter_sdk_location }}"
|
||||
get_attributes: false
|
||||
get_checksum: false
|
||||
@@ -38,7 +38,7 @@
|
||||
register: flutter_sdk_stat
|
||||
|
||||
- name: Workstation | Linux | Software | Flutter | Check Download Exists
|
||||
stat:
|
||||
ansible.builtin.stat:
|
||||
path: "{{ flutter_download_file }}"
|
||||
get_attributes: false
|
||||
get_checksum: false
|
||||
@@ -101,7 +101,7 @@
|
||||
when: not flutter_download_stat.stat.exists
|
||||
|
||||
- name: Workstation | Linux | Software | Flutter | Create Folder
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ flutter_sdk_location }}"
|
||||
state: directory
|
||||
owner: "{{ user }}"
|
||||
@@ -121,7 +121,7 @@
|
||||
and not flutter_sdk_stat.stat.exists
|
||||
|
||||
- name: Workstation | Linux | Software | Flutter | Delete Archive
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ flutter_download_file }}"
|
||||
state: absent
|
||||
when: coding
|
||||
@@ -129,7 +129,7 @@
|
||||
## Configure Environment ##
|
||||
|
||||
- name: Workstation | Linux | Software | Flutter | Modify PATH (.bashrc)
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ item }}/.bashrc"
|
||||
block: |
|
||||
export PATH="$PATH:{{ flutter_bin_location }}"
|
||||
@@ -146,7 +146,7 @@
|
||||
and user_user.home != ""
|
||||
|
||||
- name: Workstation | Linux | Software | Flutter | Modify PATH (.zshrc)
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ item }}/.zshrc"
|
||||
block: |
|
||||
export PATH="$PATH:{{ flutter_bin_location }}"
|
||||
@@ -174,7 +174,7 @@
|
||||
## Uninstall SDK ##
|
||||
|
||||
- name: Workstation | Linux | Software | Flutter | Remove SDK
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ flutter_sdk_location }}"
|
||||
state: absent
|
||||
when: not coding
|
||||
@@ -9,7 +9,7 @@
|
||||
block:
|
||||
|
||||
- name: Workstation | Linux | Software | Hugo | pacman | Facts
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
sass_old: ruby-sass
|
||||
sass_current: dart-sass
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
block:
|
||||
|
||||
- name: Workstation | Linux | Software | Hugo | npm | Facts
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
sass_old: node-sass
|
||||
sass_current: sass
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
block:
|
||||
|
||||
- name: Workstation | Linux | Software | Java | pacman | Facts
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
jdk_version: 21
|
||||
jdk_dir: ~/SDKs/Java
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
# Paths
|
||||
|
||||
- name: Workstation | Linux | Software | Lutris | Facts
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
lutris_source_list: "/etc/apt/sources.list.d/lutris.list"
|
||||
lutris_keyfile: "/usr/share/keyrings/lutris.gpg"
|
||||
when: ansible_pkg_mgr == "apt"
|
||||
@@ -24,7 +24,7 @@
|
||||
# Checks
|
||||
|
||||
- name: Workstation | Linux | Software | Lutris | Check PPA
|
||||
stat:
|
||||
ansible.builtin.stat:
|
||||
path: "{{ lutris_source_list }}"
|
||||
get_attributes: false
|
||||
get_checksum: false
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
# Giving this DE a shot but not liking it as much as others.
|
||||
|
||||
- name: Workstation | Linux | Software | LXQt | Facts | Defaults
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
lxqt_package: lxqt
|
||||
|
||||
- name: Workstation | Linux | Software | LXQt | Facts | Debian Derivitives
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
lxqt_package: task-lxqt-desktop
|
||||
when: ansible_distribution in ("Debian", "Devuan")
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
block:
|
||||
|
||||
- name: Workstation | Software | NodeJS | apt | Facts
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
node_version: node_24.x
|
||||
|
||||
- name: Workstation | Software | NodeJS | apt | Old | Remove
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
## Variables ##
|
||||
|
||||
- name: Workstation | Linux | Software | TLP | Facts
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
tlp_package: "tlp"
|
||||
tlp_rdw: "tlp-rdw"
|
||||
tlp_smart: "smartmontools"
|
||||
@@ -19,7 +19,7 @@
|
||||
acf_service: "auto-cpufreq"
|
||||
|
||||
- name: Workstation | Linux | Software | TLP | Facts (Artix)
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
ppd_package: "power-profiles-daemon power-profiles-daemon-runit"
|
||||
tlp_run_script: tlp-runit
|
||||
when: ansible_pkg_mgr == "pacman"
|
||||
@@ -28,7 +28,7 @@
|
||||
## Conflicts ##
|
||||
|
||||
#- name: Workstation | Linux | Software | TLP | Conflicts | Disable
|
||||
# service:
|
||||
# ansible.builtin.service:
|
||||
# name: "{{ item }}"
|
||||
# state: stopped
|
||||
# enabled: false
|
||||
@@ -67,7 +67,7 @@
|
||||
# NFC and WWAN (cellular) are never used so always disable.
|
||||
|
||||
- name: Workstation | Linux | Software | TLP | Config
|
||||
lineinfile:
|
||||
ansible.builtin.lineinfile:
|
||||
path: "{{ tlp_config }}"
|
||||
regexp: '{{ item.key }}'
|
||||
line: '{{ item.value }} # MANAGED BY ANSIBLE'
|
||||
@@ -100,7 +100,7 @@
|
||||
# Ensure the service is running and will run after reboot.
|
||||
|
||||
- name: Workstation | Linux | Software | TLP | Enable + Start
|
||||
service:
|
||||
ansible.builtin.service:
|
||||
name: "{{ tlp_service }}"
|
||||
state: started
|
||||
enabled: true
|
||||
@@ -110,11 +110,11 @@
|
||||
block:
|
||||
|
||||
- name: Workstation | Linux | Software | TLP | runit | Devuan | Facts 01
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
devuan_tlp_dir: "{{ runit_script_dir }}/{{ tlp_service }}"
|
||||
|
||||
- name: Workstation | Linux | Software | TLP | runit | Devuan | Facts 02
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
devuan_tlp_run: "{{ devuan_tlp_dir }}/run"
|
||||
|
||||
- name: Workstation | Linux | Software | TLP | runit | Devuan | Create Script
|
||||
@@ -136,7 +136,7 @@
|
||||
when: ansible_service_mgr == "runit"
|
||||
|
||||
- name: Workstation | Linux | Software | TLP | runit | Functions & Aliases
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ item }}"
|
||||
block: |
|
||||
function tlp-devices {
|
||||
|
||||
@@ -43,17 +43,17 @@
|
||||
block:
|
||||
|
||||
- name: Workstation | Software | VPN | Mullvad | Devuan | Facts 01
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
devuan_mullvad_dir: "{{ global_src }}/mullvad-installer"
|
||||
mullvad_deb_url: https://mullvad.net/en/download/app/deb/latest
|
||||
mullvad_repack_url: https://github.com/sys-fs/mullvad-repack
|
||||
|
||||
- name: Workstation | Software | VPN | Mullvad | Devuan | Facts 02
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
mullvad_repack_dir: "{{ devuan_mullvad_dir }}/mullvad_repack"
|
||||
|
||||
- name: Workstation | Software | VPN | Mullvad | Devuan | Check
|
||||
stat:
|
||||
ansible.builtin.stat:
|
||||
path: '/opt/Mullvad VPN'
|
||||
register: mullvad_installed
|
||||
|
||||
@@ -74,16 +74,16 @@
|
||||
## Link & Enable ##
|
||||
|
||||
- name: Workstation | Software | VPN | Mullvad | PATH | Facts 01
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
mullvad_exe: 'mullvad-vpn'
|
||||
mullvad_exe_dir: '/opt/Mullvad\ VPN'
|
||||
|
||||
- name: Workstation | Software | VPN | Mullvad | PATH | Facts 02
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
mullvad_exe_new: "{{ global_bin }}/{{ mullvad_exe }}"
|
||||
|
||||
- name: Workstation | Software | VPN | Mullvad | PATH | Facts (pacman)
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
mullvad_exe_dir: '/usr/bin'
|
||||
when: ansible_pkg_mgr == "pacman"
|
||||
|
||||
@@ -97,7 +97,7 @@
|
||||
- chmod +x {{ mullvad_exe_new }}
|
||||
|
||||
- name: Workstation | Software | VPN | Mullvad | runit | Enable Service (mullvad-daemon)
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
src: "{{ runit_script_dir }}/mullvad-daemon"
|
||||
dest: "{{ runit_service_dir }}/mullvad-daemon"
|
||||
state: link
|
||||
@@ -105,7 +105,7 @@
|
||||
when: ansible_service_mgr == "runit"
|
||||
|
||||
- name: Workstation | Software | VPN | Mullvad | runit | Remove Old Service (mullvad)
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ runit_service_dir }}/mullvad"
|
||||
state: absent
|
||||
when: ansible_service_mgr == "runit"
|
||||
|
||||
@@ -15,14 +15,14 @@
|
||||
# Paths
|
||||
|
||||
- name: Workstation | Linux | Software | VS Codium | Facts
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
vscodium_source_list: "/etc/apt/sources.list.d/vscodium.list"
|
||||
vscodium_keyfile: "/usr/share/keyrings/vscodium.gpg"
|
||||
|
||||
# Checks
|
||||
|
||||
- name: Workstation | Linux | Software | VS Codium | Check PPA
|
||||
stat:
|
||||
ansible.builtin.stat:
|
||||
path: "{{ vscodium_source_list }}"
|
||||
get_attributes: false
|
||||
get_checksum: false
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
# Temporarily removed while it's broken:
|
||||
# , 'com.vscodium.codium.desktop', 'codium.desktop'
|
||||
- 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.
|
||||
cinnamon_favorites: "[ 'org.gnome.Terminal.desktop'
|
||||
, 'org.gnome.Console.desktop'
|
||||
@@ -47,12 +47,12 @@
|
||||
#, 'chat.simplex.simplex.desktop'
|
||||
|
||||
- name: Workstation | Account Management | Cinnamon | Facts (NixOS)
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
dconf_terminal: kgx
|
||||
when: ansible_distribution in ("NixOS")
|
||||
|
||||
- name: Workstation | Account Management | Cinnamon | Facts (Ubuntu)
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
dconf_theme: Yaru-purple-dark
|
||||
dconf_icons: Yaru-purple-dark
|
||||
when: ansible_distribution in ("Ubuntu")
|
||||
@@ -70,7 +70,7 @@
|
||||
# Apply dconf settings through RC files due to distros without working psutil.
|
||||
# Use the command 'dconf watch /' then change settings to see find these values.
|
||||
- name: Workstation | Account Management | Cinnamon | Settings
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ user_user.home }}/{{ item }}"
|
||||
block: |
|
||||
# Disable Cinnamon Settings While Converting From GNOME
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# Temporarily removed while it's broken:
|
||||
# , 'com.vscodium.codium.desktop', 'codium.desktop'
|
||||
- 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.
|
||||
gnome_favorites: "[ 'org.gnome.Terminal.desktop'
|
||||
, 'org.gnome.Console.desktop'
|
||||
@@ -46,12 +46,12 @@
|
||||
#, 'chat.simplex.simplex.desktop'
|
||||
|
||||
- name: Workstation | Account Management | GNOME | Facts (NixOS)
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
dconf_terminal: kgx
|
||||
when: ansible_distribution in ("NixOS")
|
||||
|
||||
- name: Workstation | Account Management | GNOME | Facts (Ubuntu)
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
dconf_theme: Yaru-purple-dark
|
||||
dconf_icons: Yaru-purple-dark
|
||||
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
|
||||
|
||||
- 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 ', '') }}"
|
||||
dash_to_dock_ext_comma: ""
|
||||
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
|
||||
|
||||
- name: Workstation | Account Management | GNOME | Dash To Dock | Variables 2
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
dash_to_dock_ext_comma: ", "
|
||||
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
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
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
|
||||
|
||||
- name: Workstation | Account Management | GNOME | Dash To Dock | Variables 4
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
gnome_enabled_extensions: "[]"
|
||||
when: ansible_distribution not in ("Ubuntu") and dash_to_dock_exists.failed and gnome_enabled_extensions == "None"
|
||||
|
||||
@@ -176,7 +176,7 @@
|
||||
# Apply dconf settings through RC files due to distros without working psutil.
|
||||
# Use the command 'dconf watch /' then change settings to see find these values.
|
||||
- name: Workstation | Account Management | GNOME | Settings
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ user_user.home }}/{{ item }}"
|
||||
block: |
|
||||
## Temporary Variables + Functions ##
|
||||
@@ -440,7 +440,7 @@
|
||||
|
||||
# Remove the dconf settings which had the marker related to NixOS.
|
||||
- name: Workstation | Account Management | GNOME | Settings (NixOS)
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ user_user.home }}/{{ item }}"
|
||||
block: |
|
||||
# TBD: No longer used. Remove in 2027.
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
# Mount network shares.
|
||||
|
||||
- name: Workstation | Settings | NFS | Facts (Linux)
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
mount_options: defaults,_netdev
|
||||
when: ansible_system == "Linux"
|
||||
|
||||
- name: Workstation | Settings | NFS | Facts (FreeBSD)
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
mount_options: rw
|
||||
when: ansible_system == "FreeBSD"
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
# https://www.unixmen.com/setup-nfs-server-on-freebsd/
|
||||
- name: Workstation | Settings | NFS | Install (FreeBSD)
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ rc_conf }}"
|
||||
marker: "# {mark} MANAGED BY ANSIBLE | NFS Components"
|
||||
block: |
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
when: ansible_system == "FreeBSD"
|
||||
|
||||
- name: Workstation | Settings | RDP | FreeBSD | Enable
|
||||
blockinfile:
|
||||
ansible.builtin.blockinfile:
|
||||
path: "{{ rc_conf }}"
|
||||
marker: "# {mark} MANAGED BY ANSIBLE | RDP Components"
|
||||
block: |
|
||||
@@ -20,7 +20,7 @@
|
||||
when: ansible_system == "FreeBSD"
|
||||
|
||||
- name: Workstation | Settings | RDP | FreeBSD | Enable GNOME
|
||||
lineinfile:
|
||||
ansible.builtin.lineinfile:
|
||||
path: /usr/local/etc/xrdp/startwm.sh
|
||||
regexp: 'gnome-session'
|
||||
line: 'exec gnome-session # MANAGED BY ANSIBLE'
|
||||
@@ -30,7 +30,7 @@
|
||||
when: ansible_system == "FreeBSD"
|
||||
|
||||
- name: Workstation | Settings | RDP | FreeBSD | Disable xterm
|
||||
lineinfile:
|
||||
ansible.builtin.lineinfile:
|
||||
path: /usr/local/etc/xrdp/startwm.sh
|
||||
regexp: 'xterm'
|
||||
line: '#exec xterm # MANAGED BY ANSIBLE'
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
## CUPS ##
|
||||
|
||||
- name: General | Software | Services | Enable CUPS Daemon
|
||||
service:
|
||||
ansible.builtin.service:
|
||||
name: "{{ cups }}"
|
||||
pattern: "{{ cups_pattern }}"
|
||||
state: started
|
||||
@@ -12,7 +12,7 @@
|
||||
ignore_errors: true
|
||||
|
||||
- name: General | Software | Services | Enable CUPS-Browse Daemon
|
||||
service:
|
||||
ansible.builtin.service:
|
||||
name: "{{ cups_browse }}"
|
||||
pattern: "{{ cups_browse_pattern }}"
|
||||
state: started
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
# Copy everything from PROJECT/files/templates/ to User's home.
|
||||
|
||||
- name: Workstation | Settings | Templates | Variables
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
user_templates: "{{ user_user.home }}/Templates"
|
||||
|
||||
- name: Workstation | Settings | Templates | Ensure Directory Exists
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ user_templates }}"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
# it doesn´t even matter if both are installed!!
|
||||
|
||||
- name: Workstation | Shared | Software | i3 | Facts 01
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
i3_config: "settings/i3.config"
|
||||
i3_config_dir: "{{ user_user.home }}/.config/i3"
|
||||
i3_package: i3
|
||||
@@ -24,11 +24,11 @@
|
||||
i3_redshift_gui: redshift-gtk
|
||||
|
||||
- name: Workstation | Shared | Software | i3 | Facts 02
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
i3_config_file: "{{ i3_config_dir }}/config"
|
||||
|
||||
- name: Workstation | Shared | Software | i3 | Facts | non-apt
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
i3_theme01: htop
|
||||
i3_theme02: htop
|
||||
i3_theme03: htop
|
||||
@@ -36,7 +36,7 @@
|
||||
when: ansible_pkg_mgr != "apt"
|
||||
|
||||
- name: Workstation | Shared | Software | i3 | Facts | yay
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
i3_yay_packages:
|
||||
- greybird-gtk-theme
|
||||
#- enlightenment-arc-theme
|
||||
@@ -44,7 +44,7 @@
|
||||
when: ansible_pkg_mgr == "pacman"
|
||||
|
||||
#- name: Workstation | Shared | Software | i3 | Facts | TBD
|
||||
# set_fact:
|
||||
# ansible.builtin.set_fact:
|
||||
# i3_package: i3-wm
|
||||
# when: ansible_distribution in ("TBD")
|
||||
|
||||
@@ -76,7 +76,7 @@
|
||||
ignore_errors: true
|
||||
|
||||
- name: Workstation | Shared | Software | i3 | Config | Create Dir
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ i3_config_dir }}"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
@@ -130,7 +130,7 @@
|
||||
# msg: "{{ i3_light_device_check }}"
|
||||
|
||||
- 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 }}"
|
||||
ignore_errors: true
|
||||
|
||||
|
||||
Reference in new issue
Block a user