Compare commits

..
4 Commits
Author SHA1 Message Date
me ff548cc7a2 Add become to all become_user tasks. 2026-10-02 07:58:58 -07:00
me f808eb7ecb lint, ignore error about comments being too long. 2026-10-02 07:58:42 -07:00
me 9beecf1a49 Elminate usage of "BOOL != true". 2026-10-02 07:52:22 -07:00
me 0a820394bb Elminate usage of "BOOL == true". 2026-10-02 07:51:10 -07:00
21 changed files with 141 additions and 103 deletions

No files matched your search

+2
View File
@@ -4,9 +4,11 @@ skip_list:
- fqcn[action-core] - fqcn[action-core]
- command-instead-of-shell - command-instead-of-shell
- key-order[task] - key-order[task]
- yaml[line-length]
warn_list: warn_list:
- literal-compare - literal-compare
- ignore-errors - ignore-errors
- no-changed-when - no-changed-when
- yaml[indentation] - yaml[indentation]
- yaml[comments]
+19 -19
View File
@@ -42,7 +42,7 @@
- name: Main | Start | Notify | Add Message - name: Main | Start | Notify | Add Message
shell : echo "'Ansible' 'Provisioning started @ `date`'" >> "{{ notify_log_file }}" shell : echo "'Ansible' 'Provisioning started @ `date`'" >> "{{ notify_log_file }}"
when: workstation == true when: workstation
####### NixOS ####### ####### NixOS #######
# Install the .nix files and do a little data setup. # Install the .nix files and do a little data setup.
@@ -70,7 +70,7 @@
# time to start looking into home-manager but still not wanting to # time to start looking into home-manager but still not wanting to
# maintain two different GNOME setups. HMMMM! # maintain two different GNOME setups. HMMMM!
- include_tasks: tasks/workstation/shared/settings/gnome.yml - include_tasks: tasks/workstation/shared/settings/gnome.yml
when: workstation == true when: workstation
# Try including these. Really need to get NixOS working with the rest! # Try including these. Really need to get NixOS working with the rest!
#- include_tasks: tasks/general/software/telegraf.yml # "Could not find a module for unknown."" #- include_tasks: tasks/general/software/telegraf.yml # "Could not find a module for unknown.""
@@ -120,7 +120,7 @@
- include_tasks: tasks/general/software/metasploit.yml - include_tasks: tasks/general/software/metasploit.yml
when: provision == true when: provision
####### Workstations ####### ####### Workstations #######
@@ -132,7 +132,7 @@
## Desktop Environments ## ## Desktop Environments ##
- include_tasks: tasks/workstation/freebsd/software/gpu.yml - include_tasks: tasks/workstation/freebsd/software/gpu.yml
when: ansible_system == "FreeBSD" and bsd_gpu == true when: ansible_system == "FreeBSD" and bsd_gpu
# Window Managers without true Desktop Environments # # Window Managers without true Desktop Environments #
- include_tasks: tasks/workstation/shared/software/dwm.yml - include_tasks: tasks/workstation/shared/software/dwm.yml
@@ -149,7 +149,7 @@
- include_tasks: tasks/workstation/linux/software/cinnamon.yml - include_tasks: tasks/workstation/linux/software/cinnamon.yml
- include_tasks: tasks/workstation/linux/software/lxqt.yml - include_tasks: tasks/workstation/linux/software/lxqt.yml
when: ansible_system == "Linux" when: ansible_system == "Linux"
# TBD: Implement this: and extra_desktops == true # TBD: Implement this: and extra_desktops
## Software Tasks ## ## Software Tasks ##
- block: - block:
@@ -183,10 +183,10 @@
- include_tasks: tasks/workstation/shared/settings/nfs.yml - include_tasks: tasks/workstation/shared/settings/nfs.yml
- include_tasks: tasks/workstation/shared/settings/rdp.yml - include_tasks: tasks/workstation/shared/settings/rdp.yml
when: rdp == true when: rdp
- include_tasks: tasks/workstation/shared/settings/vnc.yml - include_tasks: tasks/workstation/shared/settings/vnc.yml
when: vnc == true when: vnc
- include_tasks: tasks/workstation/shared/settings/services.yml - include_tasks: tasks/workstation/shared/settings/services.yml
- include_tasks: tasks/workstation/shared/settings/templates.yml - include_tasks: tasks/workstation/shared/settings/templates.yml
@@ -200,7 +200,7 @@
- include_tasks: tasks/workstation/linux/software/android.yml - include_tasks: tasks/workstation/linux/software/android.yml
when: ansible_system == "Linux" when: ansible_system == "Linux"
when: workstation == true when: workstation
# No longer mining, this is now considered deprecated. # No longer mining, this is now considered deprecated.
@@ -228,20 +228,20 @@
# ### GPU Section ### # ### GPU Section ###
# ## Drivers ## # ## Drivers ##
# - include_tasks: tasks/miner/drivers/amdgpu.yml # - include_tasks: tasks/miner/drivers/amdgpu.yml
# when: ansible_distribution == "Ubuntu" and amdgpu == true # when: ansible_distribution == "Ubuntu" and amdgpu
# #
# # Ethereum # # # Ethereum #
# - include_tasks: tasks/miner/software/ethminer.yml # - include_tasks: tasks/miner/software/ethminer.yml
# when: ethminer == true # when: ethminer
# #
# - include_tasks: tasks/miner/software/nanominer.yml # - include_tasks: tasks/miner/software/nanominer.yml
# when: nanominer == true # when: nanominer
# #
# ##### Scheduling ##### # ##### Scheduling #####
# - include_tasks: tasks/miner/cron/ansible.yml # - include_tasks: tasks/miner/cron/ansible.yml
# - include_tasks: tasks/miner/cron/mfn.yml # - include_tasks: tasks/miner/cron/mfn.yml
# #
# when: miner == true # when: miner
####### Servers ####### ####### Servers #######
@@ -254,23 +254,23 @@
- block: - block:
- include_tasks: tasks/server/software/certbot.yml - include_tasks: tasks/server/software/certbot.yml
- include_tasks: tasks/server/cron/certbot.yml - include_tasks: tasks/server/cron/certbot.yml
when: certbot == true when: certbot
- block: - block:
- include_tasks: tasks/server/software/onlyoffice.yml - include_tasks: tasks/server/software/onlyoffice.yml
when: onlyoffice == true when: onlyoffice
- include_tasks: tasks/server/software/influxdb1.yml - include_tasks: tasks/server/software/influxdb1.yml
when: influxdb1 == true when: influxdb1
- include_tasks: tasks/server/software/influxdb2.yml - include_tasks: tasks/server/software/influxdb2.yml
when: influxdb2 == true when: influxdb2
- include_tasks: tasks/server/software/grafana.yml - include_tasks: tasks/server/software/grafana.yml
when: grafana == true when: grafana
when: ansible_pkg_mgr == "apt" when: ansible_pkg_mgr == "apt"
- include_tasks: tasks/server/software/hugo.yml - include_tasks: tasks/server/software/hugo.yml
when: hugo == true when: hugo
when: server == true when: server
####### Reporting ####### ####### Reporting #######
+1 -1
View File
@@ -428,7 +428,7 @@
- name: General | Account Management | Provisioning Configuration | Exit Check - name: General | Account Management | Provisioning Configuration | Exit Check
shell: echo "Please configure the config files in {{ prov_dir }} then try again." && exit 1 shell: echo "Please configure the config files in {{ prov_dir }} then try again." && exit 1
when: provision != true when: ! provision
## Display values ## ## Display values ##
+4 -1
View File
@@ -77,6 +77,7 @@
shell: "echo SUCCESS" shell: "echo SUCCESS"
args: args:
executable: "{{ user_shell }}" executable: "{{ user_shell }}"
become: true
become_user: "{{ user }}" become_user: "{{ user }}"
@@ -105,6 +106,7 @@
- "{{ user_user.home }}/Reports" - "{{ user_user.home }}/Reports"
- "{{ user_user.home }}/Torrentz" - "{{ user_user.home }}/Torrentz"
- "{{ user_user.home }}/Seedz" - "{{ user_user.home }}/Seedz"
become: true
become_user: "{{ user }}" become_user: "{{ user }}"
when: user_user.home != "" when: user_user.home != ""
@@ -115,8 +117,9 @@
mode: '0755' mode: '0755'
loop: loop:
- "{{ user_user.home }}/Code" - "{{ user_user.home }}/Code"
become: true
become_user: "{{ user }}" become_user: "{{ user }}"
when: user_user.home != "" and coding == true when: user_user.home != "" and coding
- name: General | Account Management | Users | Home Permissions - name: General | Account Management | Users | Home Permissions
shell: "chmod 700 {{ user_user.home }}/../*" shell: "chmod 700 {{ user_user.home }}/../*"
+3 -3
View File
@@ -26,7 +26,7 @@
line: "{{ aur_user }} ALL=(ALL) NOPASSWD: /usr/bin/pacman" line: "{{ aur_user }} ALL=(ALL) NOPASSWD: /usr/bin/pacman"
create: true create: true
mode: '0440' mode: '0440'
validate: 'visudo -cf %s' validate: 'visudo -cf %s'
- name: General | Software | AUR | Check - name: General | Software | AUR | Check
command: "which {{ aur_helper }}" command: "which {{ aur_helper }}"
@@ -47,8 +47,8 @@
- name: General | Software | AUR | Install | Build & Integrate - name: General | Software | AUR | Install | Build & Integrate
shell: "cd {{ aur_helper_dir }} && makepkg -si --noconfirm" shell: "cd {{ aur_helper_dir }} && makepkg -si --noconfirm"
become: true
become_user: "{{ aur_user }}" become_user: "{{ aur_user }}"
changed_when: true changed_when: true
when: yay_check.rc != 0 when: yay_check.rc != 0
+3 -3
View File
@@ -5,7 +5,7 @@
set_fact: set_fact:
metasploit_installer: msfinstall metasploit_installer: msfinstall
when: ansible_system in ("Linux", "Darwin") when: ansible_system in ("Linux", "Darwin")
and pentesting == true and pentesting
- name: General | Software | Metasploit | Check Install Status - name: General | Software | Metasploit | Check Install Status
stat: stat:
@@ -21,7 +21,7 @@
- "mv -fv /etc/apt/preferences.d/pin-metasploit.pref /tmp/apt/pin-metasploit.pref.old" - "mv -fv /etc/apt/preferences.d/pin-metasploit.pref /tmp/apt/pin-metasploit.pref.old"
when: ansible_system in ("Linux") and ansible_pkg_mgr == "apt" when: ansible_system in ("Linux") and ansible_pkg_mgr == "apt"
and not metasploit_status.stat.exists and not metasploit_status.stat.exists
and pentesting == true and pentesting
ignore_errors: true ignore_errors: true
- name: General | Software | Metasploit | Install - name: General | Software | Metasploit | Install
@@ -34,7 +34,7 @@
- yes y | "{{ global_bin }}/{{ metasploit_installer }}" - yes y | "{{ global_bin }}/{{ metasploit_installer }}"
when: ansible_system in ("Linux", "Darwin") when: ansible_system in ("Linux", "Darwin")
and not metasploit_status.stat.exists and not metasploit_status.stat.exists
and pentesting == true and pentesting
- name: General | Software | Metasploit | Remove (Darwin) - name: General | Software | Metasploit | Remove (Darwin)
shell: "{{ item }}" shell: "{{ item }}"
+1
View File
@@ -23,6 +23,7 @@
- "chmod 755 {{ nix_exe }}" - "chmod 755 {{ nix_exe }}"
- "{{ nix_exe }} --daemon --yes" - "{{ nix_exe }} --daemon --yes"
- "rm -v {{ nix_exe }}" - "rm -v {{ nix_exe }}"
become: true
become_user: "{{ user }}" become_user: "{{ user }}"
- name: Install Nix Software - name: Install Nix Software
+11 -11
View File
@@ -3,24 +3,24 @@
## Dependencies ## ## Dependencies ##
- name: Miner | Software | Ethminer | Install Dependencies - name: Miner | Software | Ethminer | Install Dependencies
package: package:
name: name:
- build-essential - build-essential
- dkms - dkms
- cmake - cmake
- perl - perl
- libdbus-1-dev - libdbus-1-dev
- mesa-common-dev - mesa-common-dev
state: present state: present
- name: Miner | Software | Ethminer | Add PPA - name: Miner | Software | Ethminer | Add PPA
apt_repository: apt_repository:
repo: ppa:ethereum/ethereum repo: ppa:ethereum/ethereum
update_cache: yes update_cache: yes
state: present state: present
- name: Miner | Software | Ethminer | Install Ethereum - name: Miner | Software | Ethminer | Install Ethereum
package: package:
name: ethereum name: ethereum
state: present state: present
@@ -69,12 +69,12 @@
set_fact: set_fact:
opencl_flag: "ON" opencl_flag: "ON"
sys_opencl_flag: "OFF" sys_opencl_flag: "OFF"
when: amdgpu == true when: amdgpu
- name: Miner | Software | Ethminer | Determine CUDA Flag - name: Miner | Software | Ethminer | Determine CUDA Flag
set_fact: set_fact:
cuda_flag: "ON" cuda_flag: "ON"
when: nvidia == true when: nvidia
- name: Miner | Software | Ethminer | Determine DBUS Flag - name: Miner | Software | Ethminer | Determine DBUS Flag
set_fact: set_fact:
+12 -1
View File
@@ -7,6 +7,7 @@
- name: Miner | Software | Nanominer | Installation | Create Home - name: Miner | Software | Nanominer | Installation | Create Home
shell: "mkdir -p {{ nanominer_home }}" shell: "mkdir -p {{ nanominer_home }}"
become: true
become_user: mfn become_user: mfn
- name: Miner | Software | Nanominer | Installation | Download Tarball - name: Miner | Software | Nanominer | Installation | Download Tarball
@@ -16,6 +17,7 @@
shell: "tar -xvf {{ nanominer_tar_local }}" shell: "tar -xvf {{ nanominer_tar_local }}"
args: args:
chdir: "{{ nanominer_home }}" chdir: "{{ nanominer_home }}"
become: true
become_user: mfn become_user: mfn
@@ -51,6 +53,7 @@
create: yes create: yes
loop: loop:
- { "algorithm": "RandomX", "wallet": '{{ wallet_xmr }}', "state": "{{ (nanominer_cpu == 'xmr') | ternary('present', 'absent') }}"} - { "algorithm": "RandomX", "wallet": '{{ wallet_xmr }}', "state": "{{ (nanominer_cpu == 'xmr') | ternary('present', 'absent') }}"}
become: true
become_user: mfn become_user: mfn
when: nanominer_cpu != false when: nanominer_cpu != false
@@ -61,6 +64,7 @@
state: present state: present
create: no create: no
loop: "{{ cpu_pool }}" loop: "{{ cpu_pool }}"
become: true
become_user: mfn become_user: mfn
when: nanominer_cpu != false when: nanominer_cpu != false
@@ -70,6 +74,7 @@
line: ";;;;;;;;;;;;; END CPU" line: ";;;;;;;;;;;;; END CPU"
state: present state: present
create: no create: no
become: true
become_user: mfn become_user: mfn
when: nanominer_cpu != false when: nanominer_cpu != false
@@ -85,6 +90,7 @@
marker: ';' marker: ';'
state: present state: present
create: no create: no
become: true
become_user: mfn become_user: mfn
when: nanominer_config is file when: nanominer_config is file
@@ -116,6 +122,7 @@
create: yes create: yes
loop: loop:
- { "algorithm": "Ethash", "wallet": '{{ wallet_eth }}', "state": "{{ (nanominer_gpu == 'eth') | ternary('present', 'absent') }}"} - { "algorithm": "Ethash", "wallet": '{{ wallet_eth }}', "state": "{{ (nanominer_gpu == 'eth') | ternary('present', 'absent') }}"}
become: true
become_user: mfn become_user: mfn
when: nanominer_gpu != false when: nanominer_gpu != false
@@ -126,6 +133,7 @@
state: present state: present
create: no create: no
loop: "{{ gpu_pool }}" loop: "{{ gpu_pool }}"
become: true
become_user: mfn become_user: mfn
when: nanominer_gpu != false when: nanominer_gpu != false
@@ -135,6 +143,7 @@
line: ";;;;;;;;;;;;; END GPU" line: ";;;;;;;;;;;;; END GPU"
state: present state: present
create: no create: no
become: true
become_user: mfn become_user: mfn
when: nanominer_gpu != false when: nanominer_gpu != false
@@ -151,7 +160,7 @@
path: "{{ nanominer_script }}" path: "{{ nanominer_script }}"
block: | block: |
# 2021-02-15 - Automate nanominer script creation. # 2021-02-15 - Automate nanominer script creation.
date date
whoami whoami
pwd pwd
@@ -165,6 +174,7 @@
marker_end: "exit 0" marker_end: "exit 0"
state: present state: present
create: yes create: yes
become: true
become_user: mfn become_user: mfn
@@ -183,5 +193,6 @@
# Then once I log out the job should come back within the minute. # Then once I log out the job should come back within the minute.
- name: Miner | Software | Nanominer | Reload - name: Miner | Software | Nanominer | Reload
shell: "killall {{ nanominer_script }}; killall {{ nanominer_exec }}; killall nanominer.sh; killall nanominer" shell: "killall {{ nanominer_script }}; killall {{ nanominer_exec }}; killall nanominer.sh; killall nanominer"
become: true
become_user: mfn become_user: mfn
ignore_errors: yes ignore_errors: yes
+1 -1
View File
@@ -13,4 +13,4 @@
special_time: weekly special_time: weekly
state: present state: present
disabled: no disabled: no
when: certbot == true and certbot.stdout is defined when: certbot and certbot.stdout is defined
+7 -6
View File
@@ -4,8 +4,8 @@
## Pre-Reqs ## ## Pre-Reqs ##
- name: Server | OnlyOffice | Pre-Requirements | Install - name: Server | OnlyOffice | Pre-Requirements | Install
package: package:
name: name:
- gnupg - gnupg
- python3-certbot-nginx - python3-certbot-nginx
state: present state: present
@@ -17,7 +17,7 @@
# Dependencies # # Dependencies #
- name: Server | OnlyOffice | Postgres | Install - name: Server | OnlyOffice | Postgres | Install
package: package:
name: postgresql name: postgresql
state: present state: present
@@ -27,11 +27,12 @@
- psql -c "CREATE DATABASE onlyoffice;" - psql -c "CREATE DATABASE onlyoffice;"
- psql -c "CREATE USER onlyoffice WITH password 'onlyoffice';" - psql -c "CREATE USER onlyoffice WITH password 'onlyoffice';"
- psql -c "GRANT ALL privileges ON DATABASE onlyoffice TO onlyoffice;" - psql -c "GRANT ALL privileges ON DATABASE onlyoffice TO onlyoffice;"
become: true
become_user: postgres become_user: postgres
ignore_errors: yes ignore_errors: yes
- name: Server | OnlyOffice | RabbitMQ | Install - name: Server | OnlyOffice | RabbitMQ | Install
package: package:
name: rabbitmq-server name: rabbitmq-server
state: present state: present
@@ -45,8 +46,8 @@
- apt update - apt update
- name: Server | OnlyOffice | Docs | Install - name: Server | OnlyOffice | Docs | Install
package: package:
name: name:
- ttf-mscorefonts-installer - ttf-mscorefonts-installer
- onlyoffice-documentserver - onlyoffice-documentserver
state: present state: present
@@ -26,14 +26,14 @@
name: name:
- vscode - vscode
state: present state: present
when: coding == true when: coding
- name: Workstation | FreeBSD | Software | Packages | Coding | Install - name: Workstation | FreeBSD | Software | Packages | Coding | Install
package: package:
name: name:
- vscode - vscode
state: absent state: absent
when: not coding == true when: not coding
# Media Editors # # Media Editors #
@@ -63,7 +63,7 @@
- 0ad - 0ad
- supertuxkart - supertuxkart
state: present state: present
when: gaming == true when: gaming
- name: Workstation | FreeBSD | Software | Packages | Gaming | Install - name: Workstation | FreeBSD | Software | Packages | Gaming | Install
package: package:
@@ -71,4 +71,4 @@
- 0ad - 0ad
- supertuxkart - supertuxkart
state: absent state: absent
when: not gaming == true when: not gaming
+34 -23
View File
@@ -156,7 +156,7 @@
get_checksum: false get_checksum: false
get_mime: false get_mime: false
register: android_sdkmanager_temp_stat register: android_sdkmanager_temp_stat
when: coding == true when: coding
- name: Workstation | Linux | Software | Android | Check SDK Manager Exists [2/2] - name: Workstation | Linux | Software | Android | Check SDK Manager Exists [2/2]
stat: stat:
@@ -165,7 +165,7 @@
get_checksum: false get_checksum: false
get_mime: false get_mime: false
register: android_sdkmanager_check register: android_sdkmanager_check
when: coding == true when: coding
- name: Workstation | Linux | Software | Android | Check Download Exists - name: Workstation | Linux | Software | Android | Check Download Exists
stat: stat:
@@ -174,7 +174,7 @@
get_checksum: false get_checksum: false
get_mime: false get_mime: false
register: android_download_stat register: android_download_stat
when: coding == true when: coding
## Packages ## ## Packages ##
@@ -190,14 +190,14 @@
- "{{ bzip }}" - "{{ bzip }}"
- "{{ android_udev }}" - "{{ android_udev }}"
state: present state: present
when: coding == true when: coding
- name: Workstation | Linux | Software | Android | Dependencies [Remove] - name: Workstation | Linux | Software | Android | Dependencies [Remove]
package: package:
name: name:
- "{{ android_sdkmanager }}" - "{{ android_sdkmanager }}"
state: absent state: absent
when: coding == true when: coding
and ansible_pkg_mgr == "apt" and ansible_pkg_mgr == "apt"
## Install SDK ## ## Install SDK ##
@@ -229,8 +229,9 @@
owner: "{{ user }}" owner: "{{ user }}"
group: "{{ user }}" group: "{{ user }}"
become: true
become_user: "{{ user }}" become_user: "{{ user }}"
when: coding == true when: coding
and not android_sdkmanager_temp_stat.stat.exists and not android_sdkmanager_temp_stat.stat.exists
- name: Workstation | Linux | Software | Android | Delete Archive - name: Workstation | Linux | Software | Android | Delete Archive
@@ -248,8 +249,9 @@
- cmdline-tools/latest - cmdline-tools/latest
- platform-tools - platform-tools
- emulator - emulator
become: true
become_user: "{{ user }}" become_user: "{{ user }}"
when: coding == true when: coding
and not android_sdkmanager_check.stat.exists and not android_sdkmanager_check.stat.exists
# These are safe to run multiple times, and uses the new `latest` version. # These are safe to run multiple times, and uses the new `latest` version.
@@ -268,8 +270,9 @@
register: install_required register: install_required
changed_when: "'INSTALLED' in install_required.stdout" changed_when: "'INSTALLED' in install_required.stdout"
failed_when: "'FAILED' in install_required.stdout" failed_when: "'FAILED' in install_required.stdout"
become: true
become_user: "{{ user }}" become_user: "{{ user }}"
when: coding == true when: coding
# Add more versions for testing across all the important platforms. # Add more versions for testing across all the important platforms.
- name: Workstation | Linux | Software | Android | Install | Additional Modules - name: Workstation | Linux | Software | Android | Install | Additional Modules
@@ -287,9 +290,10 @@
register: install_additional register: install_additional
changed_when: "'INSTALLED' in install_additional.stdout" changed_when: "'INSTALLED' in install_additional.stdout"
failed_when: "'FAILED' in install_additional.stdout" failed_when: "'FAILED' in install_additional.stdout"
become: true
become_user: "{{ user }}" become_user: "{{ user }}"
when: coding == true when: coding
and sdks == true and sdks
# Remove extra downloads if system is not meant for full amount of testing. # Remove extra downloads if system is not meant for full amount of testing.
- name: Workstation | Linux | Software | Android | Uninstall | Additional Modules - name: Workstation | Linux | Software | Android | Uninstall | Additional Modules
@@ -307,9 +311,10 @@
register: remove_additional register: remove_additional
changed_when: "'REMOVED' in remove_additional.stdout" changed_when: "'REMOVED' in remove_additional.stdout"
failed_when: "'FAILED' in remove_additional.stdout" failed_when: "'FAILED' in remove_additional.stdout"
become: true
become_user: "{{ user }}" become_user: "{{ user }}"
when: coding != true when: !coding
or sdks != true or !sdks
# Remove any versions which used to be part of this script and no longer used. # Remove any versions which used to be part of this script and no longer used.
- name: Workstation | Linux | Software | Android | Uninstall | Unused Modules - name: Workstation | Linux | Software | Android | Uninstall | Unused Modules
@@ -327,37 +332,43 @@
register: remove_unused register: remove_unused
changed_when: "'REMOVED' in remove_unused.stdout" changed_when: "'REMOVED' in remove_unused.stdout"
failed_when: "'FAILED' in remove_unused.stdout" failed_when: "'FAILED' in remove_unused.stdout"
become: true
become_user: "{{ user }}" become_user: "{{ user }}"
when: coding == true when: coding
# Report the currently installed packges. # Report the currently installed packges.
- name: Workstation | Linux | Software | Android | Report Modules - name: Workstation | Linux | Software | Android | Report Modules
shell: "{{ android_sdkmanager2_list }} --all > {{ android_report_file }}" shell: "{{ android_sdkmanager2_list }} --all > {{ android_report_file }}"
become: true
become_user: "{{ user }}" become_user: "{{ user }}"
when: coding == true when: coding
## Flutter and Licenses ## ## Flutter and Licenses ##
- name: Workstation | Linux | Software | Android | Inform Flutter - name: Workstation | Linux | Software | Android | Inform Flutter
shell: "{{ flutter }} config --android-sdk={{ android_sdk_location }}" shell: "{{ flutter }} config --android-sdk={{ android_sdk_location }}"
become: true
become_user: "{{ user }}" become_user: "{{ user }}"
when: coding == true when: coding
- name: Workstation | Linux | Software | Android | License Agreements [1/2] - name: Workstation | Linux | Software | Android | License Agreements [1/2]
shell: "yes | {{ android_sdkmanager_final }} --licenses --sdk_root={{ android_sdk_location }}" shell: "yes | {{ android_sdkmanager_final }} --licenses --sdk_root={{ android_sdk_location }}"
become: true
become_user: "{{ user }}" become_user: "{{ user }}"
when: coding == true when: coding
- name: Workstation | Linux | Software | Android | License Agreements [2/2] - name: Workstation | Linux | Software | Android | License Agreements [2/2]
shell: "yes | {{ flutter }} doctor --android-licenses" shell: "yes | {{ flutter }} doctor --android-licenses"
become: true
become_user: "{{ user }}" become_user: "{{ user }}"
when: coding == true when: coding
- name: Workstation | Linux | Software | Android | Refresh Flutter Doctor Report - name: Workstation | Linux | Software | Android | Refresh Flutter Doctor Report
shell: "{{ item }}" shell: "{{ item }}"
loop: "{{ flutter_report_commands }}" loop: "{{ flutter_report_commands }}"
become: true
become_user: "{{ user }}" become_user: "{{ user }}"
when: coding == true when: coding
## Configure Environment ## ## Configure Environment ##
@@ -374,7 +385,7 @@
- "{{ user_root.home }}" - "{{ user_root.home }}"
- "{{ user_user.home }}" - "{{ user_user.home }}"
ignore_errors: true ignore_errors: true
when: coding == true when: coding
and user_root.home != "" and user_root.home != ""
and user_user.home != "" and user_user.home != ""
@@ -391,7 +402,7 @@
- "{{ user_root.home }}" - "{{ user_root.home }}"
- "{{ user_user.home }}" - "{{ user_user.home }}"
ignore_errors: true ignore_errors: true
when: coding == true when: coding
and user_root.home != "" and user_root.home != ""
and user_user.home != "" and user_user.home != ""
@@ -401,7 +412,7 @@
file: file:
path: "{{ android_sdk_location }}" path: "{{ android_sdk_location }}"
state: absent state: absent
when: not coding == true when: not coding
## User Tools ## ## User Tools ##
# Only needed from repo if not a development device, # Only needed from repo if not a development device,
@@ -413,7 +424,7 @@
- "{{ android_fastboot }}" - "{{ android_fastboot }}"
- "{{ android_adb }}" - "{{ android_adb }}"
state: present state: present
when: not coding == true when: not coding
- name: Workstation | Linux | Software | Android | System Tools [Remove] - name: Workstation | Linux | Software | Android | System Tools [Remove]
package: package:
@@ -421,4 +432,4 @@
- "{{ android_fastboot }}" - "{{ android_fastboot }}"
- "{{ android_adb }}" - "{{ android_adb }}"
state: absent state: absent
when: coding == true when: coding
+15 -10
View File
@@ -113,6 +113,7 @@
state: present state: present
create: yes create: yes
loop: "{{ flatpaks_generic }}" loop: "{{ flatpaks_generic }}"
become: true
become_user: "{{ user }}" become_user: "{{ user }}"
- name: Workstation | Linux | Flatpak Distro | Flatpak | Generic | Executable Permissions - name: Workstation | Linux | Flatpak Distro | Flatpak | Generic | Executable Permissions
@@ -131,7 +132,7 @@
state: present state: present
loop: "{{ flatpaks_coding }}" loop: "{{ flatpaks_coding }}"
ignore_errors: yes ignore_errors: yes
when: coding == true when: coding
- name: Workstation | Linux | Flatpak Distro | Flatpak | Coding | Executables - name: Workstation | Linux | Flatpak Distro | Flatpak | Coding | Executables
blockinfile: blockinfile:
@@ -144,8 +145,9 @@
state: present state: present
create: yes create: yes
loop: "{{ flatpaks_coding }}" loop: "{{ flatpaks_coding }}"
become: true
become_user: "{{ user }}" become_user: "{{ user }}"
when: coding == true when: coding
- name: Workstation | Linux | Flatpak Distro | Flatpak | Coding | Executable Permissions - name: Workstation | Linux | Flatpak Distro | Flatpak | Coding | Executable Permissions
file: file:
@@ -153,7 +155,7 @@
state: file state: file
mode: '0755' mode: '0755'
loop: "{{ flatpaks_coding }}" loop: "{{ flatpaks_coding }}"
when: coding == true when: coding
- name: Workstation | Linux | Flatpak Distro | Flatpak | Coding | Uninstall - name: Workstation | Linux | Flatpak Distro | Flatpak | Coding | Uninstall
flatpak: flatpak:
@@ -162,7 +164,7 @@
state: absent state: absent
loop: "{{ flatpaks_coding }}" loop: "{{ flatpaks_coding }}"
ignore_errors: yes ignore_errors: yes
when: not coding == true when: not coding
- name: Workstation | Linux | Flatpak Distro | Flatpak | Coding | Remove Executables - name: Workstation | Linux | Flatpak Distro | Flatpak | Coding | Remove Executables
file: file:
@@ -170,7 +172,7 @@
state: absent state: absent
loop: "{{ flatpaks_coding }}" loop: "{{ flatpaks_coding }}"
ignore_errors: yes ignore_errors: yes
when: not coding == true when: not coding
# Media Editors # # Media Editors #
@@ -194,6 +196,7 @@
state: present state: present
create: yes create: yes
loop: "{{ flatpaks_editing_video }}" loop: "{{ flatpaks_editing_video }}"
become: true
become_user: "{{ user }}" become_user: "{{ user }}"
when: editing in (true, "video") when: editing in (true, "video")
@@ -242,6 +245,7 @@
state: present state: present
create: yes create: yes
loop: "{{ flatpaks_editing_audio }}" loop: "{{ flatpaks_editing_audio }}"
become: true
become_user: "{{ user }}" become_user: "{{ user }}"
when: editing in (true, "audio") when: editing in (true, "audio")
@@ -279,7 +283,7 @@
state: present state: present
loop: "{{ flatpaks_gaming }}" loop: "{{ flatpaks_gaming }}"
ignore_errors: yes ignore_errors: yes
when: gaming == true when: gaming
- name: Workstation | Linux | Flatpak Distro | Flatpak | Gaming | Executables - name: Workstation | Linux | Flatpak Distro | Flatpak | Gaming | Executables
blockinfile: blockinfile:
@@ -292,8 +296,9 @@
state: present state: present
create: yes create: yes
loop: "{{ flatpaks_gaming }}" loop: "{{ flatpaks_gaming }}"
become: true
become_user: "{{ user }}" become_user: "{{ user }}"
when: gaming == true when: gaming
- name: Workstation | Linux | Flatpak Distro | Flatpak | Gaming | Executable Permissions - name: Workstation | Linux | Flatpak Distro | Flatpak | Gaming | Executable Permissions
file: file:
@@ -301,7 +306,7 @@
state: file state: file
mode: '0755' mode: '0755'
loop: "{{ flatpaks_gaming }}" loop: "{{ flatpaks_gaming }}"
when: gaming == true when: gaming
- name: Workstation | Linux | Flatpak Distro | Flatpak | Gaming | Uninstalls - name: Workstation | Linux | Flatpak Distro | Flatpak | Gaming | Uninstalls
flatpak: flatpak:
@@ -310,7 +315,7 @@
state: absent state: absent
loop: "{{ flatpaks_gaming }}" loop: "{{ flatpaks_gaming }}"
ignore_errors: yes ignore_errors: yes
when: not gaming == true when: not gaming
- name: Workstation | Linux | Flatpak Distro | Flatpak | Gaming | Remove Executables - name: Workstation | Linux | Flatpak Distro | Flatpak | Gaming | Remove Executables
file: file:
@@ -318,7 +323,7 @@
state: absent state: absent
loop: "{{ flatpaks_gaming }}" loop: "{{ flatpaks_gaming }}"
ignore_errors: yes ignore_errors: yes
when: not gaming == true when: not gaming
# Removals # # Removals #
+11 -9
View File
@@ -58,7 +58,7 @@
- "{{ mesa }}" - "{{ mesa }}"
- "{{ mesa_utils }}" - "{{ mesa_utils }}"
state: present state: present
when: coding == true when: coding
# https://docs.flutter.dev/get-started/install/linux/desktop # https://docs.flutter.dev/get-started/install/linux/desktop
- name: Workstation | Linux | Software | Flutter | Linux App Dependencies - name: Workstation | Linux | Software | Flutter | Linux App Dependencies
@@ -73,7 +73,7 @@
- "{{ xz_libs }}" - "{{ xz_libs }}"
- "{{ cpp }}" - "{{ cpp }}"
state: present state: present
when: coding == true when: coding
# https://docs.flutter.dev/get-started/install/linux/android # https://docs.flutter.dev/get-started/install/linux/android
- name: Workstation | Linux | Software | Flutter | Android App Dependencies - name: Workstation | Linux | Software | Flutter | Android App Dependencies
@@ -84,7 +84,7 @@
- "{{ z_libs }}" - "{{ z_libs }}"
- "{{ bzip }}" - "{{ bzip }}"
state: present state: present
when: coding == true when: coding
## Install SDK ## ## Install SDK ##
@@ -115,15 +115,16 @@
owner: "{{ user }}" owner: "{{ user }}"
group: "{{ user }}" group: "{{ user }}"
become: true
become_user: "{{ user }}" become_user: "{{ user }}"
when: coding == true when: coding
and not flutter_sdk_stat.stat.exists and not flutter_sdk_stat.stat.exists
- name: Workstation | Linux | Software | Flutter | Delete Archive - name: Workstation | Linux | Software | Flutter | Delete Archive
file: file:
path: "{{ flutter_download_file }}" path: "{{ flutter_download_file }}"
state: absent state: absent
when: coding == true when: coding
## Configure Environment ## ## Configure Environment ##
@@ -140,7 +141,7 @@
- "{{ user_root.home }}" - "{{ user_root.home }}"
- "{{ user_user.home }}" - "{{ user_user.home }}"
ignore_errors: yes ignore_errors: yes
when: coding == true when: coding
and user_root.home != "" and user_root.home != ""
and user_user.home != "" and user_user.home != ""
@@ -157,7 +158,7 @@
- "{{ user_root.home }}" - "{{ user_root.home }}"
- "{{ user_user.home }}" - "{{ user_user.home }}"
ignore_errors: yes ignore_errors: yes
when: coding == true when: coding
and user_root.home != "" and user_root.home != ""
and user_user.home != "" and user_user.home != ""
@@ -166,8 +167,9 @@
- name: Workstation | Linux | Software | Flutter | Doctor Report - name: Workstation | Linux | Software | Flutter | Doctor Report
shell: "{{ item }}" shell: "{{ item }}"
loop: "{{ flutter_report_commands }}" loop: "{{ flutter_report_commands }}"
become: true
become_user: "{{ user }}" become_user: "{{ user }}"
when: coding == true when: coding
## Uninstall SDK ## ## Uninstall SDK ##
@@ -175,4 +177,4 @@
file: file:
path: "{{ flutter_sdk_location }}" path: "{{ flutter_sdk_location }}"
state: absent state: absent
when: not coding == true when: not coding
@@ -28,6 +28,7 @@
shell: "ln -sf /usr/lib/jvm {{ jdk_dir }}" shell: "ln -sf /usr/lib/jvm {{ jdk_dir }}"
args: args:
creates: "{{ jdk_dir }}" creates: "{{ jdk_dir }}"
become: true
become_user: "{{ user }}" become_user: "{{ user }}"
when: coding is true when: coding is true
+6 -6
View File
@@ -39,7 +39,7 @@
repo: ppa:lutris-team/lutris repo: ppa:lutris-team/lutris
update_cache: yes update_cache: yes
state: present state: present
when: ansible_distribution in ("Ubuntu") and gaming == true when: ansible_distribution in ("Ubuntu") and gaming
ignore_errors: yes ignore_errors: yes
- name: Workstation | Linux | Software | Lutris | Add PPA (Debian) - name: Workstation | Linux | Software | Lutris | Add PPA (Debian)
@@ -51,7 +51,7 @@
- "echo 'deb [signed-by={{ lutris_keyfile }}] https://download.opensuse.org/repositories/home:/strycore/Debian_13/ ./' \ - "echo 'deb [signed-by={{ lutris_keyfile }}] https://download.opensuse.org/repositories/home:/strycore/Debian_13/ ./' \
| sudo tee {{ lutris_source_list }} > /dev/null" | sudo tee {{ lutris_source_list }} > /dev/null"
- "sudo apt update" - "sudo apt update"
when: ansible_distribution in ("Debian") and gaming == true and not lutris_source_exists.stat.exists when: ansible_distribution in ("Debian") and gaming and not lutris_source_exists.stat.exists
## Install Package ## ## Install Package ##
@@ -60,7 +60,7 @@
name: name:
- lutris - lutris
state: present state: present
when: ansible_architecture != "aarch64" and gaming == true when: ansible_architecture != "aarch64" and gaming
## Uninstall Package ## ## Uninstall Package ##
@@ -69,7 +69,7 @@
name: name:
- lutris - lutris
state: absent state: absent
when: ansible_architecture != "aarch64" and gaming != true when: ansible_architecture != "aarch64" and ! gaming
## Uninstall Repo ## ## Uninstall Repo ##
@@ -78,7 +78,7 @@
repo: ppa:lutris-team/lutris repo: ppa:lutris-team/lutris
update_cache: yes update_cache: yes
state: absent state: absent
when: ansible_distribution in ("Ubuntu") and gaming != true when: ansible_distribution in ("Ubuntu") and ! gaming
ignore_errors: yes ignore_errors: yes
- name: Workstation | Linux | Software | Lutris | Remove PPA (Debian) - name: Workstation | Linux | Software | Lutris | Remove PPA (Debian)
@@ -87,4 +87,4 @@
- "mv {{ lutris_source_list }} ~/TRASH/" - "mv {{ lutris_source_list }} ~/TRASH/"
- "mv {{ lutris_keyfile }} ~/TRASH/" - "mv {{ lutris_keyfile }} ~/TRASH/"
- "sudo apt update" - "sudo apt update"
when: ansible_distribution in ("Debian") and gaming != true and lutris_source_exists.stat.exists when: ansible_distribution in ("Debian") and ! gaming and lutris_source_exists.stat.exists
+1 -1
View File
@@ -44,4 +44,4 @@
state: present state: present
when: ansible_pkg_mgr != "apt" when: ansible_pkg_mgr != "apt"
when: coding == true when: coding
@@ -66,7 +66,7 @@
name: name:
- gimp - gimp
state: present state: present
when: editing == true when: editing
- name: Workstation | Linux | Software | Packages | Install Audio (Looking at you, Artix) - name: Workstation | Linux | Software | Packages | Install Audio (Looking at you, Artix)
package: package:
+3 -3
View File
@@ -20,7 +20,7 @@
- firefox-esr - firefox-esr
- visual-studio-code - visual-studio-code
status: present status: present
when: coding == true when: coding
- name: Workstation | Mac OS | Software | Brew | Install Packages (Editing:Video) - name: Workstation | Mac OS | Software | Brew | Install Packages (Editing:Video)
package: package:
@@ -42,14 +42,14 @@
- battle-net - battle-net
- steam - steam
status: present status: present
when: gaming == true when: gaming
- name: Workstation | Mac OS | Software | Brew | Install Packages (Cycling) - name: Workstation | Mac OS | Software | Brew | Install Packages (Cycling)
package: package:
name: name:
- zwift - zwift
status: present status: present
when: cycling == true when: cycling
#- name: Workstation | Mac OS | Software | Brew | Remove Packages #- name: Workstation | Mac OS | Software | Brew | Remove Packages
# package: # package:
@@ -74,6 +74,7 @@
- name: Workstation | Account Management | GNOME | Dash To Dock | Check - name: Workstation | Account Management | GNOME | Dash To Dock | Check
shell: "cd ~/.local/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/" shell: "cd ~/.local/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/"
become: true
become_user: "{{ user }}" become_user: "{{ user }}"
register: dash_to_dock_exists register: dash_to_dock_exists