Migrate set_fact to FQCN.
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
# 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"
|
||||
@@ -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 }}" }
|
||||
@@ -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 }}" }
|
||||
@@ -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 }}" }
|
||||
@@ -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,7 +19,7 @@
|
||||
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"
|
||||
#
|
||||
|
||||
@@ -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 }}"
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# 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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# 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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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: "" }
|
||||
|
||||
@@ -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 }}"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
@@ -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
|
||||
|
||||
@@ -43,13 +43,13 @@
|
||||
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
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
# 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"
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# 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
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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