Hosts Variable Refactor, User Name Refactor, Metasploit, Brave on Fedora, Aliases (#19)
* Add Brave to Fedora (DNF).
* First attempt to add metasploit installer.
* Fix check for Linux and macOS to use System, not Distro.
* Add more memorable aliases for msfconsole.
* Telegraf is attemping to install doube-time since hosts match both localhost and hostname.
* Add missing pipe.
* Attempt to fix flatpak play no longer being able to find user_ling var. Don't see anything in the dev branch which would have changed this behavior though.
* Add note for future removal.
* Use general gather for all groups. Move user variables to it.
* Feodra Workstation succeeds now! Add newline to end of file.
* First attempt at doing host variables via local files.
* Try using ini as lookup.
* Remove "-" typo.
* Add an initial gather even though it may not have all values properly populated on a machine's first run.
* Fix typo in ignore.
* Try default values.
* Try defaults without quotes.
* Add a section header. Add a default back.
* Rename section to global.
* Add workstation provision file. Change variables to require true. Only load config file if hosts is not being used.
* Put flags back on Dell so that programs are not removed while configuring files.
* Add provision config read to workstation.
* Go ahead and force config files for hosts. Only affects dev branch until PR. Start making miner and server files.
* Change {{}} to (()) in comments to avoid undefined variable error.
* Attempt to modify existing task groups instead of moving all tasks to one large group.
* Try to use blocks.
* Name blocks and remove redundant calls.
* Do the bare minimum for miner and server so the variables are at least defined.
* Ensure Server and Miner look at their own files.
* Test how block variables are handled.
* Are the variables true Booleans, not strings??
* Change exits to tests so we can see which ones work.
* Add more tests.
* Add the test results.
* Add config_dir for plays to use when making any config files.
* Move provision config dir.
* Add results of test.
* Remove the exit. Fix the blocks' whens.
* Do provision after starting, that way all facts exist.
* Fix all "true"'s.
* Adjust variable checks for provision_config changes.
* Change gui to wrk. Add aliases to cat files.
* Comment entire hosts file.
* Add localhost,
* Try localhost rather than host file group.
* Fix typo in "prov_dir".
* Add newline to end of file.
* Add newline to end of file.
* Add newline to end of file.
* Debug variable. Should be getting set but receiving errors on Fedora.
* Add newline to end of file.
* Fix debug property, var not name.
* Fix show-config. Change show-config-all to only hit active files, not backups.
* Uncomment commented workstation.
* Add commands to edit files.
* Attempt to fix gitlab installer variables.
* Attempt to fix gitlab play variable.
* Replacing `ling` for `{{ user }}`.
* Remove TODO.
* Remove `config_dir` and move provision config back near top.
* `user_root` is not needed, already moved to /usr/local/etc/.
* Add value for running anything at all. This allows user to set up files before first run.
* Reduce the check frequency,
* Ensure files are printed in correct order. Also add a newline between each.
* Only send file if it exists, and then remove it if it sends successfully.
* Always set the destination variables.
* Only run the scp for systems without sshfs. Forgot that system variables were shared between the two, and do not want to scp the files to themselves then delete the files from the mount.
2021-12-05 18:08:51 -06:00
|
|
|
---
|
|
|
|
# Set up directory and files for specifying software needs rather than using hosts file.
|
|
|
|
|
|
|
|
- name: General | Account Management | Provisioning Configuration | Variables 1
|
|
|
|
set_fact:
|
|
|
|
prov_dir: "/usr/local/etc/hyperling-scm"
|
2021-12-24 14:55:21 -06:00
|
|
|
provision_variables: []
|
Hosts Variable Refactor, User Name Refactor, Metasploit, Brave on Fedora, Aliases (#19)
* Add Brave to Fedora (DNF).
* First attempt to add metasploit installer.
* Fix check for Linux and macOS to use System, not Distro.
* Add more memorable aliases for msfconsole.
* Telegraf is attemping to install doube-time since hosts match both localhost and hostname.
* Add missing pipe.
* Attempt to fix flatpak play no longer being able to find user_ling var. Don't see anything in the dev branch which would have changed this behavior though.
* Add note for future removal.
* Use general gather for all groups. Move user variables to it.
* Feodra Workstation succeeds now! Add newline to end of file.
* First attempt at doing host variables via local files.
* Try using ini as lookup.
* Remove "-" typo.
* Add an initial gather even though it may not have all values properly populated on a machine's first run.
* Fix typo in ignore.
* Try default values.
* Try defaults without quotes.
* Add a section header. Add a default back.
* Rename section to global.
* Add workstation provision file. Change variables to require true. Only load config file if hosts is not being used.
* Put flags back on Dell so that programs are not removed while configuring files.
* Add provision config read to workstation.
* Go ahead and force config files for hosts. Only affects dev branch until PR. Start making miner and server files.
* Change {{}} to (()) in comments to avoid undefined variable error.
* Attempt to modify existing task groups instead of moving all tasks to one large group.
* Try to use blocks.
* Name blocks and remove redundant calls.
* Do the bare minimum for miner and server so the variables are at least defined.
* Ensure Server and Miner look at their own files.
* Test how block variables are handled.
* Are the variables true Booleans, not strings??
* Change exits to tests so we can see which ones work.
* Add more tests.
* Add the test results.
* Add config_dir for plays to use when making any config files.
* Move provision config dir.
* Add results of test.
* Remove the exit. Fix the blocks' whens.
* Do provision after starting, that way all facts exist.
* Fix all "true"'s.
* Adjust variable checks for provision_config changes.
* Change gui to wrk. Add aliases to cat files.
* Comment entire hosts file.
* Add localhost,
* Try localhost rather than host file group.
* Fix typo in "prov_dir".
* Add newline to end of file.
* Add newline to end of file.
* Add newline to end of file.
* Debug variable. Should be getting set but receiving errors on Fedora.
* Add newline to end of file.
* Fix debug property, var not name.
* Fix show-config. Change show-config-all to only hit active files, not backups.
* Uncomment commented workstation.
* Add commands to edit files.
* Attempt to fix gitlab installer variables.
* Attempt to fix gitlab play variable.
* Replacing `ling` for `{{ user }}`.
* Remove TODO.
* Remove `config_dir` and move provision config back near top.
* `user_root` is not needed, already moved to /usr/local/etc/.
* Add value for running anything at all. This allows user to set up files before first run.
* Reduce the check frequency,
* Ensure files are printed in correct order. Also add a newline between each.
* Only send file if it exists, and then remove it if it sends successfully.
* Always set the destination variables.
* Only run the scp for systems without sshfs. Forgot that system variables were shared between the two, and do not want to scp the files to themselves then delete the files from the mount.
2021-12-05 18:08:51 -06:00
|
|
|
|
|
|
|
- name: General | Account Management | Provisioning Configuration | Variables 2
|
|
|
|
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
|
General Enhancements, NixOS Support (#47)
* Begin adding Nix.
* Install LBRY from Nix since its Flatpak is no longer supported..
* Got the global install to work, now just figuring out why LBRY won't work.
* Add alias to blow away dev branch and start back up from remote or main.
* Nix install not really working, requires manual intervention, maybe add to setup.sh or just try NixOS and see if it can 'replace' this entire Ansible project and cease the use of multiple operating systems.
* Start working on having a path for NixOS.
* Add NixOS.
* Skip the installer portion if using NixOS.
* Start including more tasks. ALl work besides GNOME due to psutil, even though it is included in configuration.nix.
* This should have never been added. Was an accident if it snuck though.
* Test using env rather than hard-coded bash path.
* Use variables, start thinking about future.
* Add file to manage setting up NixOS for the first or any subsequent times.
* Use the new nixos.sh script.
* Ensure /usr/local/bin is in PATH.
* Do not use * inside of "" for ls.
* Add filename cleanup shortcut.
* Add a clean option as well as a few bugfixes and checking that convert is installed.
* Use underscores in filenames and remove plurality.
* Bring the file into better column compliance.
* Stop running the dconf psutil failures against NixOS for now.
* Ensure the old names of scripts are removed from bin.
* Clean filename fixes as well as a traversing version.
* Remove extra spacing.
* Begin adding swapfile creation.
* Add dangerous code reset command.
* Add some cleaning for NixOS package manager.
* The ~ was being taken literally and created as a new folder.
* More work on swap files, and a new ansible.nix file.
* Fix the swap confuration line.
* Finish the swap configuration by checking if it already exists. Always keep the fstab line in existence.
* Reorder and enhance the update function for NixOS.
* Add comment.
* Start working on dconf for NixOS since don't have home-manager working yet in configration.nix.
* Add notes.
* If the file was created, make sure the user owns it and can edit by default.
* Favorites are working and only need maintained in one place! :)
* Add .zshrc for GNOME settings on NixOS.
* Add most other settings that are done manually post-install. Report any failures with their placement.
* FINALLY! Keyboard shortcuts and some final Gnome Tweak settings!
* Add night light settings.
* Move around some comments.
* Pull first then deal with any merge issues, rather than trying to push when there are things to pull.
* Test removing the dconf commands for non-NixOS.
* Alter output; remove extra newlines and add cache verbosity.
* dconf in rc files is working on Ubuntu!
* Add delete. Fix filename quotes. Other enhancements.
* Create new folder chain if clean changed directory names.
* Add TBD about changing the directory structure.
* Only say success if the file really exists. Skip if conversion fails.
* Only say success if the file really exists. Skip if conversion fails.
* Add quotes around dirname.
* Add quotes around the entire directory tree.
* Add quotes to comment in case it ever gets used.
* Add a bittorrent client.
* Disable Bluetooth on all devices, it's normally off anyways.
* Fix comments, this enables not disables.
* Create new services report.
* Add services report to main area and move all reports to NixOS area.
* Fix swap file variable name for non-NixOS distros.
* Add godot editor.
* Re-add extra programs Geary and OpenShot for variety.
* Shorten the output for 80 char terminals.
* Add Code-OSS for when Codium is having issues.
* Allow code-oss to be installed.
* Add the full desktop entry for Code-OSS.
* Ansible handles the newlines, prevent the -e from getting into the file.
* Enhance newlines in nmap report.
* Add NixOS.
2023-10-17 04:30:36 -07:00
|
|
|
file:
|
Hosts Variable Refactor, User Name Refactor, Metasploit, Brave on Fedora, Aliases (#19)
* Add Brave to Fedora (DNF).
* First attempt to add metasploit installer.
* Fix check for Linux and macOS to use System, not Distro.
* Add more memorable aliases for msfconsole.
* Telegraf is attemping to install doube-time since hosts match both localhost and hostname.
* Add missing pipe.
* Attempt to fix flatpak play no longer being able to find user_ling var. Don't see anything in the dev branch which would have changed this behavior though.
* Add note for future removal.
* Use general gather for all groups. Move user variables to it.
* Feodra Workstation succeeds now! Add newline to end of file.
* First attempt at doing host variables via local files.
* Try using ini as lookup.
* Remove "-" typo.
* Add an initial gather even though it may not have all values properly populated on a machine's first run.
* Fix typo in ignore.
* Try default values.
* Try defaults without quotes.
* Add a section header. Add a default back.
* Rename section to global.
* Add workstation provision file. Change variables to require true. Only load config file if hosts is not being used.
* Put flags back on Dell so that programs are not removed while configuring files.
* Add provision config read to workstation.
* Go ahead and force config files for hosts. Only affects dev branch until PR. Start making miner and server files.
* Change {{}} to (()) in comments to avoid undefined variable error.
* Attempt to modify existing task groups instead of moving all tasks to one large group.
* Try to use blocks.
* Name blocks and remove redundant calls.
* Do the bare minimum for miner and server so the variables are at least defined.
* Ensure Server and Miner look at their own files.
* Test how block variables are handled.
* Are the variables true Booleans, not strings??
* Change exits to tests so we can see which ones work.
* Add more tests.
* Add the test results.
* Add config_dir for plays to use when making any config files.
* Move provision config dir.
* Add results of test.
* Remove the exit. Fix the blocks' whens.
* Do provision after starting, that way all facts exist.
* Fix all "true"'s.
* Adjust variable checks for provision_config changes.
* Change gui to wrk. Add aliases to cat files.
* Comment entire hosts file.
* Add localhost,
* Try localhost rather than host file group.
* Fix typo in "prov_dir".
* Add newline to end of file.
* Add newline to end of file.
* Add newline to end of file.
* Debug variable. Should be getting set but receiving errors on Fedora.
* Add newline to end of file.
* Fix debug property, var not name.
* Fix show-config. Change show-config-all to only hit active files, not backups.
* Uncomment commented workstation.
* Add commands to edit files.
* Attempt to fix gitlab installer variables.
* Attempt to fix gitlab play variable.
* Replacing `ling` for `{{ user }}`.
* Remove TODO.
* Remove `config_dir` and move provision config back near top.
* `user_root` is not needed, already moved to /usr/local/etc/.
* Add value for running anything at all. This allows user to set up files before first run.
* Reduce the check frequency,
* Ensure files are printed in correct order. Also add a newline between each.
* Only send file if it exists, and then remove it if it sends successfully.
* Always set the destination variables.
* Only run the scp for systems without sshfs. Forgot that system variables were shared between the two, and do not want to scp the files to themselves then delete the files from the mount.
2021-12-05 18:08:51 -06:00
|
|
|
path: "{{ prov_dir }}"
|
|
|
|
state: directory
|
|
|
|
mode: '0755'
|
|
|
|
|
|
|
|
|
|
|
|
## General ##
|
|
|
|
|
|
|
|
- name: General | Account Management | Provisioning Configuration | General | Create
|
|
|
|
blockinfile:
|
|
|
|
path: "{{ gen_file }}"
|
|
|
|
block: |
|
2025-01-02 13:03:50 -07:00
|
|
|
; Please note that all potions require lowercase keys and values.
|
|
|
|
;
|
|
|
|
;;;;;;;;;;;;;;;;;;;; Basic Options ;;;;;;;;;;;;;;;;;;;;
|
Hosts Variable Refactor, User Name Refactor, Metasploit, Brave on Fedora, Aliases (#19)
* Add Brave to Fedora (DNF).
* First attempt to add metasploit installer.
* Fix check for Linux and macOS to use System, not Distro.
* Add more memorable aliases for msfconsole.
* Telegraf is attemping to install doube-time since hosts match both localhost and hostname.
* Add missing pipe.
* Attempt to fix flatpak play no longer being able to find user_ling var. Don't see anything in the dev branch which would have changed this behavior though.
* Add note for future removal.
* Use general gather for all groups. Move user variables to it.
* Feodra Workstation succeeds now! Add newline to end of file.
* First attempt at doing host variables via local files.
* Try using ini as lookup.
* Remove "-" typo.
* Add an initial gather even though it may not have all values properly populated on a machine's first run.
* Fix typo in ignore.
* Try default values.
* Try defaults without quotes.
* Add a section header. Add a default back.
* Rename section to global.
* Add workstation provision file. Change variables to require true. Only load config file if hosts is not being used.
* Put flags back on Dell so that programs are not removed while configuring files.
* Add provision config read to workstation.
* Go ahead and force config files for hosts. Only affects dev branch until PR. Start making miner and server files.
* Change {{}} to (()) in comments to avoid undefined variable error.
* Attempt to modify existing task groups instead of moving all tasks to one large group.
* Try to use blocks.
* Name blocks and remove redundant calls.
* Do the bare minimum for miner and server so the variables are at least defined.
* Ensure Server and Miner look at their own files.
* Test how block variables are handled.
* Are the variables true Booleans, not strings??
* Change exits to tests so we can see which ones work.
* Add more tests.
* Add the test results.
* Add config_dir for plays to use when making any config files.
* Move provision config dir.
* Add results of test.
* Remove the exit. Fix the blocks' whens.
* Do provision after starting, that way all facts exist.
* Fix all "true"'s.
* Adjust variable checks for provision_config changes.
* Change gui to wrk. Add aliases to cat files.
* Comment entire hosts file.
* Add localhost,
* Try localhost rather than host file group.
* Fix typo in "prov_dir".
* Add newline to end of file.
* Add newline to end of file.
* Add newline to end of file.
* Debug variable. Should be getting set but receiving errors on Fedora.
* Add newline to end of file.
* Fix debug property, var not name.
* Fix show-config. Change show-config-all to only hit active files, not backups.
* Uncomment commented workstation.
* Add commands to edit files.
* Attempt to fix gitlab installer variables.
* Attempt to fix gitlab play variable.
* Replacing `ling` for `{{ user }}`.
* Remove TODO.
* Remove `config_dir` and move provision config back near top.
* `user_root` is not needed, already moved to /usr/local/etc/.
* Add value for running anything at all. This allows user to set up files before first run.
* Reduce the check frequency,
* Ensure files are printed in correct order. Also add a newline between each.
* Only send file if it exists, and then remove it if it sends successfully.
* Always set the destination variables.
* Only run the scp for systems without sshfs. Forgot that system variables were shared between the two, and do not want to scp the files to themselves then delete the files from the mount.
2021-12-05 18:08:51 -06:00
|
|
|
;
|
|
|
|
; enable : Provide true for the provision to occur.
|
General Enhancements, NixOS Support (#47)
* Begin adding Nix.
* Install LBRY from Nix since its Flatpak is no longer supported..
* Got the global install to work, now just figuring out why LBRY won't work.
* Add alias to blow away dev branch and start back up from remote or main.
* Nix install not really working, requires manual intervention, maybe add to setup.sh or just try NixOS and see if it can 'replace' this entire Ansible project and cease the use of multiple operating systems.
* Start working on having a path for NixOS.
* Add NixOS.
* Skip the installer portion if using NixOS.
* Start including more tasks. ALl work besides GNOME due to psutil, even though it is included in configuration.nix.
* This should have never been added. Was an accident if it snuck though.
* Test using env rather than hard-coded bash path.
* Use variables, start thinking about future.
* Add file to manage setting up NixOS for the first or any subsequent times.
* Use the new nixos.sh script.
* Ensure /usr/local/bin is in PATH.
* Do not use * inside of "" for ls.
* Add filename cleanup shortcut.
* Add a clean option as well as a few bugfixes and checking that convert is installed.
* Use underscores in filenames and remove plurality.
* Bring the file into better column compliance.
* Stop running the dconf psutil failures against NixOS for now.
* Ensure the old names of scripts are removed from bin.
* Clean filename fixes as well as a traversing version.
* Remove extra spacing.
* Begin adding swapfile creation.
* Add dangerous code reset command.
* Add some cleaning for NixOS package manager.
* The ~ was being taken literally and created as a new folder.
* More work on swap files, and a new ansible.nix file.
* Fix the swap confuration line.
* Finish the swap configuration by checking if it already exists. Always keep the fstab line in existence.
* Reorder and enhance the update function for NixOS.
* Add comment.
* Start working on dconf for NixOS since don't have home-manager working yet in configration.nix.
* Add notes.
* If the file was created, make sure the user owns it and can edit by default.
* Favorites are working and only need maintained in one place! :)
* Add .zshrc for GNOME settings on NixOS.
* Add most other settings that are done manually post-install. Report any failures with their placement.
* FINALLY! Keyboard shortcuts and some final Gnome Tweak settings!
* Add night light settings.
* Move around some comments.
* Pull first then deal with any merge issues, rather than trying to push when there are things to pull.
* Test removing the dconf commands for non-NixOS.
* Alter output; remove extra newlines and add cache verbosity.
* dconf in rc files is working on Ubuntu!
* Add delete. Fix filename quotes. Other enhancements.
* Create new folder chain if clean changed directory names.
* Add TBD about changing the directory structure.
* Only say success if the file really exists. Skip if conversion fails.
* Only say success if the file really exists. Skip if conversion fails.
* Add quotes around dirname.
* Add quotes around the entire directory tree.
* Add quotes to comment in case it ever gets used.
* Add a bittorrent client.
* Disable Bluetooth on all devices, it's normally off anyways.
* Fix comments, this enables not disables.
* Create new services report.
* Add services report to main area and move all reports to NixOS area.
* Fix swap file variable name for non-NixOS distros.
* Add godot editor.
* Re-add extra programs Geary and OpenShot for variety.
* Shorten the output for 80 char terminals.
* Add Code-OSS for when Codium is having issues.
* Allow code-oss to be installed.
* Add the full desktop entry for Code-OSS.
* Ansible handles the newlines, prevent the -e from getting into the file.
* Enhance newlines in nmap report.
* Add NixOS.
2023-10-17 04:30:36 -07:00
|
|
|
; Default: false
|
Hosts Variable Refactor, User Name Refactor, Metasploit, Brave on Fedora, Aliases (#19)
* Add Brave to Fedora (DNF).
* First attempt to add metasploit installer.
* Fix check for Linux and macOS to use System, not Distro.
* Add more memorable aliases for msfconsole.
* Telegraf is attemping to install doube-time since hosts match both localhost and hostname.
* Add missing pipe.
* Attempt to fix flatpak play no longer being able to find user_ling var. Don't see anything in the dev branch which would have changed this behavior though.
* Add note for future removal.
* Use general gather for all groups. Move user variables to it.
* Feodra Workstation succeeds now! Add newline to end of file.
* First attempt at doing host variables via local files.
* Try using ini as lookup.
* Remove "-" typo.
* Add an initial gather even though it may not have all values properly populated on a machine's first run.
* Fix typo in ignore.
* Try default values.
* Try defaults without quotes.
* Add a section header. Add a default back.
* Rename section to global.
* Add workstation provision file. Change variables to require true. Only load config file if hosts is not being used.
* Put flags back on Dell so that programs are not removed while configuring files.
* Add provision config read to workstation.
* Go ahead and force config files for hosts. Only affects dev branch until PR. Start making miner and server files.
* Change {{}} to (()) in comments to avoid undefined variable error.
* Attempt to modify existing task groups instead of moving all tasks to one large group.
* Try to use blocks.
* Name blocks and remove redundant calls.
* Do the bare minimum for miner and server so the variables are at least defined.
* Ensure Server and Miner look at their own files.
* Test how block variables are handled.
* Are the variables true Booleans, not strings??
* Change exits to tests so we can see which ones work.
* Add more tests.
* Add the test results.
* Add config_dir for plays to use when making any config files.
* Move provision config dir.
* Add results of test.
* Remove the exit. Fix the blocks' whens.
* Do provision after starting, that way all facts exist.
* Fix all "true"'s.
* Adjust variable checks for provision_config changes.
* Change gui to wrk. Add aliases to cat files.
* Comment entire hosts file.
* Add localhost,
* Try localhost rather than host file group.
* Fix typo in "prov_dir".
* Add newline to end of file.
* Add newline to end of file.
* Add newline to end of file.
* Debug variable. Should be getting set but receiving errors on Fedora.
* Add newline to end of file.
* Fix debug property, var not name.
* Fix show-config. Change show-config-all to only hit active files, not backups.
* Uncomment commented workstation.
* Add commands to edit files.
* Attempt to fix gitlab installer variables.
* Attempt to fix gitlab play variable.
* Replacing `ling` for `{{ user }}`.
* Remove TODO.
* Remove `config_dir` and move provision config back near top.
* `user_root` is not needed, already moved to /usr/local/etc/.
* Add value for running anything at all. This allows user to set up files before first run.
* Reduce the check frequency,
* Ensure files are printed in correct order. Also add a newline between each.
* Only send file if it exists, and then remove it if it sends successfully.
* Always set the destination variables.
* Only run the scp for systems without sshfs. Forgot that system variables were shared between the two, and do not want to scp the files to themselves then delete the files from the mount.
2021-12-05 18:08:51 -06:00
|
|
|
;
|
|
|
|
; user : Provide the name of the user account.
|
|
|
|
; Example: tom, jerry, kim, sarah
|
General Enhancements, NixOS Support (#47)
* Begin adding Nix.
* Install LBRY from Nix since its Flatpak is no longer supported..
* Got the global install to work, now just figuring out why LBRY won't work.
* Add alias to blow away dev branch and start back up from remote or main.
* Nix install not really working, requires manual intervention, maybe add to setup.sh or just try NixOS and see if it can 'replace' this entire Ansible project and cease the use of multiple operating systems.
* Start working on having a path for NixOS.
* Add NixOS.
* Skip the installer portion if using NixOS.
* Start including more tasks. ALl work besides GNOME due to psutil, even though it is included in configuration.nix.
* This should have never been added. Was an accident if it snuck though.
* Test using env rather than hard-coded bash path.
* Use variables, start thinking about future.
* Add file to manage setting up NixOS for the first or any subsequent times.
* Use the new nixos.sh script.
* Ensure /usr/local/bin is in PATH.
* Do not use * inside of "" for ls.
* Add filename cleanup shortcut.
* Add a clean option as well as a few bugfixes and checking that convert is installed.
* Use underscores in filenames and remove plurality.
* Bring the file into better column compliance.
* Stop running the dconf psutil failures against NixOS for now.
* Ensure the old names of scripts are removed from bin.
* Clean filename fixes as well as a traversing version.
* Remove extra spacing.
* Begin adding swapfile creation.
* Add dangerous code reset command.
* Add some cleaning for NixOS package manager.
* The ~ was being taken literally and created as a new folder.
* More work on swap files, and a new ansible.nix file.
* Fix the swap confuration line.
* Finish the swap configuration by checking if it already exists. Always keep the fstab line in existence.
* Reorder and enhance the update function for NixOS.
* Add comment.
* Start working on dconf for NixOS since don't have home-manager working yet in configration.nix.
* Add notes.
* If the file was created, make sure the user owns it and can edit by default.
* Favorites are working and only need maintained in one place! :)
* Add .zshrc for GNOME settings on NixOS.
* Add most other settings that are done manually post-install. Report any failures with their placement.
* FINALLY! Keyboard shortcuts and some final Gnome Tweak settings!
* Add night light settings.
* Move around some comments.
* Pull first then deal with any merge issues, rather than trying to push when there are things to pull.
* Test removing the dconf commands for non-NixOS.
* Alter output; remove extra newlines and add cache verbosity.
* dconf in rc files is working on Ubuntu!
* Add delete. Fix filename quotes. Other enhancements.
* Create new folder chain if clean changed directory names.
* Add TBD about changing the directory structure.
* Only say success if the file really exists. Skip if conversion fails.
* Only say success if the file really exists. Skip if conversion fails.
* Add quotes around dirname.
* Add quotes around the entire directory tree.
* Add quotes to comment in case it ever gets used.
* Add a bittorrent client.
* Disable Bluetooth on all devices, it's normally off anyways.
* Fix comments, this enables not disables.
* Create new services report.
* Add services report to main area and move all reports to NixOS area.
* Fix swap file variable name for non-NixOS distros.
* Add godot editor.
* Re-add extra programs Geary and OpenShot for variety.
* Shorten the output for 80 char terminals.
* Add Code-OSS for when Codium is having issues.
* Allow code-oss to be installed.
* Add the full desktop entry for Code-OSS.
* Ansible handles the newlines, prevent the -e from getting into the file.
* Enhance newlines in nmap report.
* Add NixOS.
2023-10-17 04:30:36 -07:00
|
|
|
; Default: ling
|
Hosts Variable Refactor, User Name Refactor, Metasploit, Brave on Fedora, Aliases (#19)
* Add Brave to Fedora (DNF).
* First attempt to add metasploit installer.
* Fix check for Linux and macOS to use System, not Distro.
* Add more memorable aliases for msfconsole.
* Telegraf is attemping to install doube-time since hosts match both localhost and hostname.
* Add missing pipe.
* Attempt to fix flatpak play no longer being able to find user_ling var. Don't see anything in the dev branch which would have changed this behavior though.
* Add note for future removal.
* Use general gather for all groups. Move user variables to it.
* Feodra Workstation succeeds now! Add newline to end of file.
* First attempt at doing host variables via local files.
* Try using ini as lookup.
* Remove "-" typo.
* Add an initial gather even though it may not have all values properly populated on a machine's first run.
* Fix typo in ignore.
* Try default values.
* Try defaults without quotes.
* Add a section header. Add a default back.
* Rename section to global.
* Add workstation provision file. Change variables to require true. Only load config file if hosts is not being used.
* Put flags back on Dell so that programs are not removed while configuring files.
* Add provision config read to workstation.
* Go ahead and force config files for hosts. Only affects dev branch until PR. Start making miner and server files.
* Change {{}} to (()) in comments to avoid undefined variable error.
* Attempt to modify existing task groups instead of moving all tasks to one large group.
* Try to use blocks.
* Name blocks and remove redundant calls.
* Do the bare minimum for miner and server so the variables are at least defined.
* Ensure Server and Miner look at their own files.
* Test how block variables are handled.
* Are the variables true Booleans, not strings??
* Change exits to tests so we can see which ones work.
* Add more tests.
* Add the test results.
* Add config_dir for plays to use when making any config files.
* Move provision config dir.
* Add results of test.
* Remove the exit. Fix the blocks' whens.
* Do provision after starting, that way all facts exist.
* Fix all "true"'s.
* Adjust variable checks for provision_config changes.
* Change gui to wrk. Add aliases to cat files.
* Comment entire hosts file.
* Add localhost,
* Try localhost rather than host file group.
* Fix typo in "prov_dir".
* Add newline to end of file.
* Add newline to end of file.
* Add newline to end of file.
* Debug variable. Should be getting set but receiving errors on Fedora.
* Add newline to end of file.
* Fix debug property, var not name.
* Fix show-config. Change show-config-all to only hit active files, not backups.
* Uncomment commented workstation.
* Add commands to edit files.
* Attempt to fix gitlab installer variables.
* Attempt to fix gitlab play variable.
* Replacing `ling` for `{{ user }}`.
* Remove TODO.
* Remove `config_dir` and move provision config back near top.
* `user_root` is not needed, already moved to /usr/local/etc/.
* Add value for running anything at all. This allows user to set up files before first run.
* Reduce the check frequency,
* Ensure files are printed in correct order. Also add a newline between each.
* Only send file if it exists, and then remove it if it sends successfully.
* Always set the destination variables.
* Only run the scp for systems without sshfs. Forgot that system variables were shared between the two, and do not want to scp the files to themselves then delete the files from the mount.
2021-12-05 18:08:51 -06:00
|
|
|
;
|
|
|
|
; user_desc : Provide the description of the user account.
|
|
|
|
; Example: Thomas, Jerry, Kimberly, Sarah
|
General Enhancements, NixOS Support (#47)
* Begin adding Nix.
* Install LBRY from Nix since its Flatpak is no longer supported..
* Got the global install to work, now just figuring out why LBRY won't work.
* Add alias to blow away dev branch and start back up from remote or main.
* Nix install not really working, requires manual intervention, maybe add to setup.sh or just try NixOS and see if it can 'replace' this entire Ansible project and cease the use of multiple operating systems.
* Start working on having a path for NixOS.
* Add NixOS.
* Skip the installer portion if using NixOS.
* Start including more tasks. ALl work besides GNOME due to psutil, even though it is included in configuration.nix.
* This should have never been added. Was an accident if it snuck though.
* Test using env rather than hard-coded bash path.
* Use variables, start thinking about future.
* Add file to manage setting up NixOS for the first or any subsequent times.
* Use the new nixos.sh script.
* Ensure /usr/local/bin is in PATH.
* Do not use * inside of "" for ls.
* Add filename cleanup shortcut.
* Add a clean option as well as a few bugfixes and checking that convert is installed.
* Use underscores in filenames and remove plurality.
* Bring the file into better column compliance.
* Stop running the dconf psutil failures against NixOS for now.
* Ensure the old names of scripts are removed from bin.
* Clean filename fixes as well as a traversing version.
* Remove extra spacing.
* Begin adding swapfile creation.
* Add dangerous code reset command.
* Add some cleaning for NixOS package manager.
* The ~ was being taken literally and created as a new folder.
* More work on swap files, and a new ansible.nix file.
* Fix the swap confuration line.
* Finish the swap configuration by checking if it already exists. Always keep the fstab line in existence.
* Reorder and enhance the update function for NixOS.
* Add comment.
* Start working on dconf for NixOS since don't have home-manager working yet in configration.nix.
* Add notes.
* If the file was created, make sure the user owns it and can edit by default.
* Favorites are working and only need maintained in one place! :)
* Add .zshrc for GNOME settings on NixOS.
* Add most other settings that are done manually post-install. Report any failures with their placement.
* FINALLY! Keyboard shortcuts and some final Gnome Tweak settings!
* Add night light settings.
* Move around some comments.
* Pull first then deal with any merge issues, rather than trying to push when there are things to pull.
* Test removing the dconf commands for non-NixOS.
* Alter output; remove extra newlines and add cache verbosity.
* dconf in rc files is working on Ubuntu!
* Add delete. Fix filename quotes. Other enhancements.
* Create new folder chain if clean changed directory names.
* Add TBD about changing the directory structure.
* Only say success if the file really exists. Skip if conversion fails.
* Only say success if the file really exists. Skip if conversion fails.
* Add quotes around dirname.
* Add quotes around the entire directory tree.
* Add quotes to comment in case it ever gets used.
* Add a bittorrent client.
* Disable Bluetooth on all devices, it's normally off anyways.
* Fix comments, this enables not disables.
* Create new services report.
* Add services report to main area and move all reports to NixOS area.
* Fix swap file variable name for non-NixOS distros.
* Add godot editor.
* Re-add extra programs Geary and OpenShot for variety.
* Shorten the output for 80 char terminals.
* Add Code-OSS for when Codium is having issues.
* Allow code-oss to be installed.
* Add the full desktop entry for Code-OSS.
* Ansible handles the newlines, prevent the -e from getting into the file.
* Enhance newlines in nmap report.
* Add NixOS.
2023-10-17 04:30:36 -07:00
|
|
|
; Default: Hyperling
|
Hosts Variable Refactor, User Name Refactor, Metasploit, Brave on Fedora, Aliases (#19)
* Add Brave to Fedora (DNF).
* First attempt to add metasploit installer.
* Fix check for Linux and macOS to use System, not Distro.
* Add more memorable aliases for msfconsole.
* Telegraf is attemping to install doube-time since hosts match both localhost and hostname.
* Add missing pipe.
* Attempt to fix flatpak play no longer being able to find user_ling var. Don't see anything in the dev branch which would have changed this behavior though.
* Add note for future removal.
* Use general gather for all groups. Move user variables to it.
* Feodra Workstation succeeds now! Add newline to end of file.
* First attempt at doing host variables via local files.
* Try using ini as lookup.
* Remove "-" typo.
* Add an initial gather even though it may not have all values properly populated on a machine's first run.
* Fix typo in ignore.
* Try default values.
* Try defaults without quotes.
* Add a section header. Add a default back.
* Rename section to global.
* Add workstation provision file. Change variables to require true. Only load config file if hosts is not being used.
* Put flags back on Dell so that programs are not removed while configuring files.
* Add provision config read to workstation.
* Go ahead and force config files for hosts. Only affects dev branch until PR. Start making miner and server files.
* Change {{}} to (()) in comments to avoid undefined variable error.
* Attempt to modify existing task groups instead of moving all tasks to one large group.
* Try to use blocks.
* Name blocks and remove redundant calls.
* Do the bare minimum for miner and server so the variables are at least defined.
* Ensure Server and Miner look at their own files.
* Test how block variables are handled.
* Are the variables true Booleans, not strings??
* Change exits to tests so we can see which ones work.
* Add more tests.
* Add the test results.
* Add config_dir for plays to use when making any config files.
* Move provision config dir.
* Add results of test.
* Remove the exit. Fix the blocks' whens.
* Do provision after starting, that way all facts exist.
* Fix all "true"'s.
* Adjust variable checks for provision_config changes.
* Change gui to wrk. Add aliases to cat files.
* Comment entire hosts file.
* Add localhost,
* Try localhost rather than host file group.
* Fix typo in "prov_dir".
* Add newline to end of file.
* Add newline to end of file.
* Add newline to end of file.
* Debug variable. Should be getting set but receiving errors on Fedora.
* Add newline to end of file.
* Fix debug property, var not name.
* Fix show-config. Change show-config-all to only hit active files, not backups.
* Uncomment commented workstation.
* Add commands to edit files.
* Attempt to fix gitlab installer variables.
* Attempt to fix gitlab play variable.
* Replacing `ling` for `{{ user }}`.
* Remove TODO.
* Remove `config_dir` and move provision config back near top.
* `user_root` is not needed, already moved to /usr/local/etc/.
* Add value for running anything at all. This allows user to set up files before first run.
* Reduce the check frequency,
* Ensure files are printed in correct order. Also add a newline between each.
* Only send file if it exists, and then remove it if it sends successfully.
* Always set the destination variables.
* Only run the scp for systems without sshfs. Forgot that system variables were shared between the two, and do not want to scp the files to themselves then delete the files from the mount.
2021-12-05 18:08:51 -06:00
|
|
|
;
|
2025-01-02 13:03:50 -07:00
|
|
|
; sshd_port : Determine the port which SSHD should listen on.
|
|
|
|
; Example: 12345
|
|
|
|
; Default: 22
|
Hosts Variable Refactor, User Name Refactor, Metasploit, Brave on Fedora, Aliases (#19)
* Add Brave to Fedora (DNF).
* First attempt to add metasploit installer.
* Fix check for Linux and macOS to use System, not Distro.
* Add more memorable aliases for msfconsole.
* Telegraf is attemping to install doube-time since hosts match both localhost and hostname.
* Add missing pipe.
* Attempt to fix flatpak play no longer being able to find user_ling var. Don't see anything in the dev branch which would have changed this behavior though.
* Add note for future removal.
* Use general gather for all groups. Move user variables to it.
* Feodra Workstation succeeds now! Add newline to end of file.
* First attempt at doing host variables via local files.
* Try using ini as lookup.
* Remove "-" typo.
* Add an initial gather even though it may not have all values properly populated on a machine's first run.
* Fix typo in ignore.
* Try default values.
* Try defaults without quotes.
* Add a section header. Add a default back.
* Rename section to global.
* Add workstation provision file. Change variables to require true. Only load config file if hosts is not being used.
* Put flags back on Dell so that programs are not removed while configuring files.
* Add provision config read to workstation.
* Go ahead and force config files for hosts. Only affects dev branch until PR. Start making miner and server files.
* Change {{}} to (()) in comments to avoid undefined variable error.
* Attempt to modify existing task groups instead of moving all tasks to one large group.
* Try to use blocks.
* Name blocks and remove redundant calls.
* Do the bare minimum for miner and server so the variables are at least defined.
* Ensure Server and Miner look at their own files.
* Test how block variables are handled.
* Are the variables true Booleans, not strings??
* Change exits to tests so we can see which ones work.
* Add more tests.
* Add the test results.
* Add config_dir for plays to use when making any config files.
* Move provision config dir.
* Add results of test.
* Remove the exit. Fix the blocks' whens.
* Do provision after starting, that way all facts exist.
* Fix all "true"'s.
* Adjust variable checks for provision_config changes.
* Change gui to wrk. Add aliases to cat files.
* Comment entire hosts file.
* Add localhost,
* Try localhost rather than host file group.
* Fix typo in "prov_dir".
* Add newline to end of file.
* Add newline to end of file.
* Add newline to end of file.
* Debug variable. Should be getting set but receiving errors on Fedora.
* Add newline to end of file.
* Fix debug property, var not name.
* Fix show-config. Change show-config-all to only hit active files, not backups.
* Uncomment commented workstation.
* Add commands to edit files.
* Attempt to fix gitlab installer variables.
* Attempt to fix gitlab play variable.
* Replacing `ling` for `{{ user }}`.
* Remove TODO.
* Remove `config_dir` and move provision config back near top.
* `user_root` is not needed, already moved to /usr/local/etc/.
* Add value for running anything at all. This allows user to set up files before first run.
* Reduce the check frequency,
* Ensure files are printed in correct order. Also add a newline between each.
* Only send file if it exists, and then remove it if it sends successfully.
* Always set the destination variables.
* Only run the scp for systems without sshfs. Forgot that system variables were shared between the two, and do not want to scp the files to themselves then delete the files from the mount.
2021-12-05 18:08:51 -06:00
|
|
|
;
|
General Enhancements, NixOS Support (#47)
* Begin adding Nix.
* Install LBRY from Nix since its Flatpak is no longer supported..
* Got the global install to work, now just figuring out why LBRY won't work.
* Add alias to blow away dev branch and start back up from remote or main.
* Nix install not really working, requires manual intervention, maybe add to setup.sh or just try NixOS and see if it can 'replace' this entire Ansible project and cease the use of multiple operating systems.
* Start working on having a path for NixOS.
* Add NixOS.
* Skip the installer portion if using NixOS.
* Start including more tasks. ALl work besides GNOME due to psutil, even though it is included in configuration.nix.
* This should have never been added. Was an accident if it snuck though.
* Test using env rather than hard-coded bash path.
* Use variables, start thinking about future.
* Add file to manage setting up NixOS for the first or any subsequent times.
* Use the new nixos.sh script.
* Ensure /usr/local/bin is in PATH.
* Do not use * inside of "" for ls.
* Add filename cleanup shortcut.
* Add a clean option as well as a few bugfixes and checking that convert is installed.
* Use underscores in filenames and remove plurality.
* Bring the file into better column compliance.
* Stop running the dconf psutil failures against NixOS for now.
* Ensure the old names of scripts are removed from bin.
* Clean filename fixes as well as a traversing version.
* Remove extra spacing.
* Begin adding swapfile creation.
* Add dangerous code reset command.
* Add some cleaning for NixOS package manager.
* The ~ was being taken literally and created as a new folder.
* More work on swap files, and a new ansible.nix file.
* Fix the swap confuration line.
* Finish the swap configuration by checking if it already exists. Always keep the fstab line in existence.
* Reorder and enhance the update function for NixOS.
* Add comment.
* Start working on dconf for NixOS since don't have home-manager working yet in configration.nix.
* Add notes.
* If the file was created, make sure the user owns it and can edit by default.
* Favorites are working and only need maintained in one place! :)
* Add .zshrc for GNOME settings on NixOS.
* Add most other settings that are done manually post-install. Report any failures with their placement.
* FINALLY! Keyboard shortcuts and some final Gnome Tweak settings!
* Add night light settings.
* Move around some comments.
* Pull first then deal with any merge issues, rather than trying to push when there are things to pull.
* Test removing the dconf commands for non-NixOS.
* Alter output; remove extra newlines and add cache verbosity.
* dconf in rc files is working on Ubuntu!
* Add delete. Fix filename quotes. Other enhancements.
* Create new folder chain if clean changed directory names.
* Add TBD about changing the directory structure.
* Only say success if the file really exists. Skip if conversion fails.
* Only say success if the file really exists. Skip if conversion fails.
* Add quotes around dirname.
* Add quotes around the entire directory tree.
* Add quotes to comment in case it ever gets used.
* Add a bittorrent client.
* Disable Bluetooth on all devices, it's normally off anyways.
* Fix comments, this enables not disables.
* Create new services report.
* Add services report to main area and move all reports to NixOS area.
* Fix swap file variable name for non-NixOS distros.
* Add godot editor.
* Re-add extra programs Geary and OpenShot for variety.
* Shorten the output for 80 char terminals.
* Add Code-OSS for when Codium is having issues.
* Allow code-oss to be installed.
* Add the full desktop entry for Code-OSS.
* Ansible handles the newlines, prevent the -e from getting into the file.
* Enhance newlines in nmap report.
* Add NixOS.
2023-10-17 04:30:36 -07:00
|
|
|
; pentesting : Set to true to install tools such as metasploit.
|
|
|
|
; nmap is already provided for reporting
|
|
|
|
; Default: false
|
Hosts Variable Refactor, User Name Refactor, Metasploit, Brave on Fedora, Aliases (#19)
* Add Brave to Fedora (DNF).
* First attempt to add metasploit installer.
* Fix check for Linux and macOS to use System, not Distro.
* Add more memorable aliases for msfconsole.
* Telegraf is attemping to install doube-time since hosts match both localhost and hostname.
* Add missing pipe.
* Attempt to fix flatpak play no longer being able to find user_ling var. Don't see anything in the dev branch which would have changed this behavior though.
* Add note for future removal.
* Use general gather for all groups. Move user variables to it.
* Feodra Workstation succeeds now! Add newline to end of file.
* First attempt at doing host variables via local files.
* Try using ini as lookup.
* Remove "-" typo.
* Add an initial gather even though it may not have all values properly populated on a machine's first run.
* Fix typo in ignore.
* Try default values.
* Try defaults without quotes.
* Add a section header. Add a default back.
* Rename section to global.
* Add workstation provision file. Change variables to require true. Only load config file if hosts is not being used.
* Put flags back on Dell so that programs are not removed while configuring files.
* Add provision config read to workstation.
* Go ahead and force config files for hosts. Only affects dev branch until PR. Start making miner and server files.
* Change {{}} to (()) in comments to avoid undefined variable error.
* Attempt to modify existing task groups instead of moving all tasks to one large group.
* Try to use blocks.
* Name blocks and remove redundant calls.
* Do the bare minimum for miner and server so the variables are at least defined.
* Ensure Server and Miner look at their own files.
* Test how block variables are handled.
* Are the variables true Booleans, not strings??
* Change exits to tests so we can see which ones work.
* Add more tests.
* Add the test results.
* Add config_dir for plays to use when making any config files.
* Move provision config dir.
* Add results of test.
* Remove the exit. Fix the blocks' whens.
* Do provision after starting, that way all facts exist.
* Fix all "true"'s.
* Adjust variable checks for provision_config changes.
* Change gui to wrk. Add aliases to cat files.
* Comment entire hosts file.
* Add localhost,
* Try localhost rather than host file group.
* Fix typo in "prov_dir".
* Add newline to end of file.
* Add newline to end of file.
* Add newline to end of file.
* Debug variable. Should be getting set but receiving errors on Fedora.
* Add newline to end of file.
* Fix debug property, var not name.
* Fix show-config. Change show-config-all to only hit active files, not backups.
* Uncomment commented workstation.
* Add commands to edit files.
* Attempt to fix gitlab installer variables.
* Attempt to fix gitlab play variable.
* Replacing `ling` for `{{ user }}`.
* Remove TODO.
* Remove `config_dir` and move provision config back near top.
* `user_root` is not needed, already moved to /usr/local/etc/.
* Add value for running anything at all. This allows user to set up files before first run.
* Reduce the check frequency,
* Ensure files are printed in correct order. Also add a newline between each.
* Only send file if it exists, and then remove it if it sends successfully.
* Always set the destination variables.
* Only run the scp for systems without sshfs. Forgot that system variables were shared between the two, and do not want to scp the files to themselves then delete the files from the mount.
2021-12-05 18:08:51 -06:00
|
|
|
;
|
2025-01-02 13:03:50 -07:00
|
|
|
;;;;;;;;;;;;;;;;;;;; Git Polling ;;;;;;;;;;;;;;;;;;;;
|
2022-12-03 15:28:29 -06:00
|
|
|
;
|
2025-01-02 13:03:50 -07:00
|
|
|
; For syncing this machine to a Git repository of this Ansible project
|
|
|
|
; in this fashion: ssh://git@GIT_HOST:GIT_SSH_PORT/GIT_USER/GIT_PROJECT
|
|
|
|
;
|
|
|
|
; branch : Branch to use on this machine.
|
|
|
|
; Example: main, dev, prod
|
|
|
|
; Default: main
|
|
|
|
;
|
|
|
|
; git_host : Provide the git host that the machine should poll.
|
|
|
|
; Example: github.com, gitlab.com. gitea.com
|
|
|
|
; Default: git.hyperling.com
|
|
|
|
;
|
|
|
|
; git_ssh_port : Port of the server host to use for SSH requests.
|
|
|
|
; Example: 22, 222, 2222
|
|
|
|
; Default: 22
|
|
|
|
;
|
|
|
|
; git_user : Provide the git user which projects are found under.
|
|
|
|
; Example: Hyperling, JimBobMcGeeJr
|
|
|
|
; Default: me
|
|
|
|
;
|
|
|
|
; git_project : Name of this project on the server host.
|
|
|
|
; Example: Ansible, ansible-setup, my-env
|
|
|
|
; Default: env-ansible
|
|
|
|
;
|
|
|
|
;;;;;;;;;;;;;;;;;;;; Swap File ;;;;;;;;;;;;;;;;;;;;
|
General Enhancements, NixOS Support (#47)
* Begin adding Nix.
* Install LBRY from Nix since its Flatpak is no longer supported..
* Got the global install to work, now just figuring out why LBRY won't work.
* Add alias to blow away dev branch and start back up from remote or main.
* Nix install not really working, requires manual intervention, maybe add to setup.sh or just try NixOS and see if it can 'replace' this entire Ansible project and cease the use of multiple operating systems.
* Start working on having a path for NixOS.
* Add NixOS.
* Skip the installer portion if using NixOS.
* Start including more tasks. ALl work besides GNOME due to psutil, even though it is included in configuration.nix.
* This should have never been added. Was an accident if it snuck though.
* Test using env rather than hard-coded bash path.
* Use variables, start thinking about future.
* Add file to manage setting up NixOS for the first or any subsequent times.
* Use the new nixos.sh script.
* Ensure /usr/local/bin is in PATH.
* Do not use * inside of "" for ls.
* Add filename cleanup shortcut.
* Add a clean option as well as a few bugfixes and checking that convert is installed.
* Use underscores in filenames and remove plurality.
* Bring the file into better column compliance.
* Stop running the dconf psutil failures against NixOS for now.
* Ensure the old names of scripts are removed from bin.
* Clean filename fixes as well as a traversing version.
* Remove extra spacing.
* Begin adding swapfile creation.
* Add dangerous code reset command.
* Add some cleaning for NixOS package manager.
* The ~ was being taken literally and created as a new folder.
* More work on swap files, and a new ansible.nix file.
* Fix the swap confuration line.
* Finish the swap configuration by checking if it already exists. Always keep the fstab line in existence.
* Reorder and enhance the update function for NixOS.
* Add comment.
* Start working on dconf for NixOS since don't have home-manager working yet in configration.nix.
* Add notes.
* If the file was created, make sure the user owns it and can edit by default.
* Favorites are working and only need maintained in one place! :)
* Add .zshrc for GNOME settings on NixOS.
* Add most other settings that are done manually post-install. Report any failures with their placement.
* FINALLY! Keyboard shortcuts and some final Gnome Tweak settings!
* Add night light settings.
* Move around some comments.
* Pull first then deal with any merge issues, rather than trying to push when there are things to pull.
* Test removing the dconf commands for non-NixOS.
* Alter output; remove extra newlines and add cache verbosity.
* dconf in rc files is working on Ubuntu!
* Add delete. Fix filename quotes. Other enhancements.
* Create new folder chain if clean changed directory names.
* Add TBD about changing the directory structure.
* Only say success if the file really exists. Skip if conversion fails.
* Only say success if the file really exists. Skip if conversion fails.
* Add quotes around dirname.
* Add quotes around the entire directory tree.
* Add quotes to comment in case it ever gets used.
* Add a bittorrent client.
* Disable Bluetooth on all devices, it's normally off anyways.
* Fix comments, this enables not disables.
* Create new services report.
* Add services report to main area and move all reports to NixOS area.
* Fix swap file variable name for non-NixOS distros.
* Add godot editor.
* Re-add extra programs Geary and OpenShot for variety.
* Shorten the output for 80 char terminals.
* Add Code-OSS for when Codium is having issues.
* Allow code-oss to be installed.
* Add the full desktop entry for Code-OSS.
* Ansible handles the newlines, prevent the -e from getting into the file.
* Enhance newlines in nmap report.
* Add NixOS.
2023-10-17 04:30:36 -07:00
|
|
|
;
|
|
|
|
; swap_block : Set to the block size if dd should create a swapfile.
|
|
|
|
; Preferably keep this under 2G for integrity sakes, the
|
|
|
|
; value is multiplied by count if you need a larger file.
|
|
|
|
; Example: 500M, 512MB, 1G
|
|
|
|
; Default: false
|
|
|
|
;
|
|
|
|
; swap_count : Set to the number of blocks to multiply the file size by.
|
|
|
|
; Example: 8
|
|
|
|
; Default: 1
|
|
|
|
;
|
|
|
|
; swap_file : Set to the name and location of where the file should be.
|
|
|
|
; Example: /usr/local/swap
|
|
|
|
; Default: /swapfile
|
2022-12-03 15:28:29 -06:00
|
|
|
;
|
2025-01-02 13:03:50 -07:00
|
|
|
;;;;;;;;;;;;;;;;;;;; Sync Frequency ;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;
|
|
|
|
; no_telem : Set to true to avoid setting up telemetry services.
|
|
|
|
; Disables GitHub updates to this project.
|
|
|
|
; Disables all telegraf pings.
|
|
|
|
; Default: false
|
|
|
|
;
|
|
|
|
; battery : Set to true to attempt to save battery life.
|
|
|
|
; Slows down the rate of services such as telegraf and cron.
|
|
|
|
; Default: false
|
2024-01-30 05:25:50 -07:00
|
|
|
;
|
Hosts Variable Refactor, User Name Refactor, Metasploit, Brave on Fedora, Aliases (#19)
* Add Brave to Fedora (DNF).
* First attempt to add metasploit installer.
* Fix check for Linux and macOS to use System, not Distro.
* Add more memorable aliases for msfconsole.
* Telegraf is attemping to install doube-time since hosts match both localhost and hostname.
* Add missing pipe.
* Attempt to fix flatpak play no longer being able to find user_ling var. Don't see anything in the dev branch which would have changed this behavior though.
* Add note for future removal.
* Use general gather for all groups. Move user variables to it.
* Feodra Workstation succeeds now! Add newline to end of file.
* First attempt at doing host variables via local files.
* Try using ini as lookup.
* Remove "-" typo.
* Add an initial gather even though it may not have all values properly populated on a machine's first run.
* Fix typo in ignore.
* Try default values.
* Try defaults without quotes.
* Add a section header. Add a default back.
* Rename section to global.
* Add workstation provision file. Change variables to require true. Only load config file if hosts is not being used.
* Put flags back on Dell so that programs are not removed while configuring files.
* Add provision config read to workstation.
* Go ahead and force config files for hosts. Only affects dev branch until PR. Start making miner and server files.
* Change {{}} to (()) in comments to avoid undefined variable error.
* Attempt to modify existing task groups instead of moving all tasks to one large group.
* Try to use blocks.
* Name blocks and remove redundant calls.
* Do the bare minimum for miner and server so the variables are at least defined.
* Ensure Server and Miner look at their own files.
* Test how block variables are handled.
* Are the variables true Booleans, not strings??
* Change exits to tests so we can see which ones work.
* Add more tests.
* Add the test results.
* Add config_dir for plays to use when making any config files.
* Move provision config dir.
* Add results of test.
* Remove the exit. Fix the blocks' whens.
* Do provision after starting, that way all facts exist.
* Fix all "true"'s.
* Adjust variable checks for provision_config changes.
* Change gui to wrk. Add aliases to cat files.
* Comment entire hosts file.
* Add localhost,
* Try localhost rather than host file group.
* Fix typo in "prov_dir".
* Add newline to end of file.
* Add newline to end of file.
* Add newline to end of file.
* Debug variable. Should be getting set but receiving errors on Fedora.
* Add newline to end of file.
* Fix debug property, var not name.
* Fix show-config. Change show-config-all to only hit active files, not backups.
* Uncomment commented workstation.
* Add commands to edit files.
* Attempt to fix gitlab installer variables.
* Attempt to fix gitlab play variable.
* Replacing `ling` for `{{ user }}`.
* Remove TODO.
* Remove `config_dir` and move provision config back near top.
* `user_root` is not needed, already moved to /usr/local/etc/.
* Add value for running anything at all. This allows user to set up files before first run.
* Reduce the check frequency,
* Ensure files are printed in correct order. Also add a newline between each.
* Only send file if it exists, and then remove it if it sends successfully.
* Always set the destination variables.
* Only run the scp for systems without sshfs. Forgot that system variables were shared between the two, and do not want to scp the files to themselves then delete the files from the mount.
2021-12-05 18:08:51 -06:00
|
|
|
[global]
|
|
|
|
marker: '; {mark} MANAGED BY ANSIBLE | Generic Config'
|
|
|
|
state: present
|
|
|
|
create: yes
|
|
|
|
backup: yes
|
|
|
|
|
|
|
|
- name: General | Account Management | Provisioning Configuration | General | Load
|
|
|
|
set_fact:
|
|
|
|
provision: "{{ lookup('ini', 'enable file={{gen_file}} default=false') }}"
|
|
|
|
user: "{{ lookup('ini', 'user file={{gen_file}} default=ling') }}"
|
|
|
|
user_desc: "{{ lookup('ini', 'user_desc file={{gen_file}} default=Hyperling') }}"
|
|
|
|
branch: "{{ lookup('ini', 'branch file={{gen_file}} default=main') }}"
|
|
|
|
pentesting: "{{ lookup('ini', 'pentesting file={{gen_file}} default=false') }}"
|
2022-12-03 15:28:29 -06:00
|
|
|
no_telem: "{{ lookup('ini', 'no_telem file={{gen_file}} default=false') }}"
|
|
|
|
battery: "{{ lookup('ini', 'battery file={{gen_file}} default=false') }}"
|
General Enhancements, NixOS Support (#47)
* Begin adding Nix.
* Install LBRY from Nix since its Flatpak is no longer supported..
* Got the global install to work, now just figuring out why LBRY won't work.
* Add alias to blow away dev branch and start back up from remote or main.
* Nix install not really working, requires manual intervention, maybe add to setup.sh or just try NixOS and see if it can 'replace' this entire Ansible project and cease the use of multiple operating systems.
* Start working on having a path for NixOS.
* Add NixOS.
* Skip the installer portion if using NixOS.
* Start including more tasks. ALl work besides GNOME due to psutil, even though it is included in configuration.nix.
* This should have never been added. Was an accident if it snuck though.
* Test using env rather than hard-coded bash path.
* Use variables, start thinking about future.
* Add file to manage setting up NixOS for the first or any subsequent times.
* Use the new nixos.sh script.
* Ensure /usr/local/bin is in PATH.
* Do not use * inside of "" for ls.
* Add filename cleanup shortcut.
* Add a clean option as well as a few bugfixes and checking that convert is installed.
* Use underscores in filenames and remove plurality.
* Bring the file into better column compliance.
* Stop running the dconf psutil failures against NixOS for now.
* Ensure the old names of scripts are removed from bin.
* Clean filename fixes as well as a traversing version.
* Remove extra spacing.
* Begin adding swapfile creation.
* Add dangerous code reset command.
* Add some cleaning for NixOS package manager.
* The ~ was being taken literally and created as a new folder.
* More work on swap files, and a new ansible.nix file.
* Fix the swap confuration line.
* Finish the swap configuration by checking if it already exists. Always keep the fstab line in existence.
* Reorder and enhance the update function for NixOS.
* Add comment.
* Start working on dconf for NixOS since don't have home-manager working yet in configration.nix.
* Add notes.
* If the file was created, make sure the user owns it and can edit by default.
* Favorites are working and only need maintained in one place! :)
* Add .zshrc for GNOME settings on NixOS.
* Add most other settings that are done manually post-install. Report any failures with their placement.
* FINALLY! Keyboard shortcuts and some final Gnome Tweak settings!
* Add night light settings.
* Move around some comments.
* Pull first then deal with any merge issues, rather than trying to push when there are things to pull.
* Test removing the dconf commands for non-NixOS.
* Alter output; remove extra newlines and add cache verbosity.
* dconf in rc files is working on Ubuntu!
* Add delete. Fix filename quotes. Other enhancements.
* Create new folder chain if clean changed directory names.
* Add TBD about changing the directory structure.
* Only say success if the file really exists. Skip if conversion fails.
* Only say success if the file really exists. Skip if conversion fails.
* Add quotes around dirname.
* Add quotes around the entire directory tree.
* Add quotes to comment in case it ever gets used.
* Add a bittorrent client.
* Disable Bluetooth on all devices, it's normally off anyways.
* Fix comments, this enables not disables.
* Create new services report.
* Add services report to main area and move all reports to NixOS area.
* Fix swap file variable name for non-NixOS distros.
* Add godot editor.
* Re-add extra programs Geary and OpenShot for variety.
* Shorten the output for 80 char terminals.
* Add Code-OSS for when Codium is having issues.
* Allow code-oss to be installed.
* Add the full desktop entry for Code-OSS.
* Ansible handles the newlines, prevent the -e from getting into the file.
* Enhance newlines in nmap report.
* Add NixOS.
2023-10-17 04:30:36 -07:00
|
|
|
swap_block: "{{ lookup('ini', 'swap_block file={{gen_file}} default=false') }}"
|
|
|
|
swap_count: "{{ lookup('ini', 'swap_count file={{gen_file}} default=1') }}"
|
|
|
|
swap_file: "{{ lookup('ini', 'swap_file file={{gen_file}} default=/swapfile') }}"
|
2024-01-30 05:25:50 -07:00
|
|
|
sshd_port: "{{ lookup('ini', 'sshd_port file={{gen_file}} default=22') }}"
|
2025-01-02 13:03:50 -07:00
|
|
|
git_host: "{{ lookup('ini', 'git_host file={{gen_file}} default=git.hyperling.com') }}"
|
|
|
|
git_user: "{{ lookup('ini', 'git_user file={{gen_file}} default=me') }}"
|
|
|
|
git_project: "{{ lookup('ini', 'git_project file={{gen_file}} default=env-ansible') }}"
|
|
|
|
git_ssh_port: "{{ lookup('ini', 'git_ssh_port file={{gen_file}} default=22') }}"
|
Hosts Variable Refactor, User Name Refactor, Metasploit, Brave on Fedora, Aliases (#19)
* Add Brave to Fedora (DNF).
* First attempt to add metasploit installer.
* Fix check for Linux and macOS to use System, not Distro.
* Add more memorable aliases for msfconsole.
* Telegraf is attemping to install doube-time since hosts match both localhost and hostname.
* Add missing pipe.
* Attempt to fix flatpak play no longer being able to find user_ling var. Don't see anything in the dev branch which would have changed this behavior though.
* Add note for future removal.
* Use general gather for all groups. Move user variables to it.
* Feodra Workstation succeeds now! Add newline to end of file.
* First attempt at doing host variables via local files.
* Try using ini as lookup.
* Remove "-" typo.
* Add an initial gather even though it may not have all values properly populated on a machine's first run.
* Fix typo in ignore.
* Try default values.
* Try defaults without quotes.
* Add a section header. Add a default back.
* Rename section to global.
* Add workstation provision file. Change variables to require true. Only load config file if hosts is not being used.
* Put flags back on Dell so that programs are not removed while configuring files.
* Add provision config read to workstation.
* Go ahead and force config files for hosts. Only affects dev branch until PR. Start making miner and server files.
* Change {{}} to (()) in comments to avoid undefined variable error.
* Attempt to modify existing task groups instead of moving all tasks to one large group.
* Try to use blocks.
* Name blocks and remove redundant calls.
* Do the bare minimum for miner and server so the variables are at least defined.
* Ensure Server and Miner look at their own files.
* Test how block variables are handled.
* Are the variables true Booleans, not strings??
* Change exits to tests so we can see which ones work.
* Add more tests.
* Add the test results.
* Add config_dir for plays to use when making any config files.
* Move provision config dir.
* Add results of test.
* Remove the exit. Fix the blocks' whens.
* Do provision after starting, that way all facts exist.
* Fix all "true"'s.
* Adjust variable checks for provision_config changes.
* Change gui to wrk. Add aliases to cat files.
* Comment entire hosts file.
* Add localhost,
* Try localhost rather than host file group.
* Fix typo in "prov_dir".
* Add newline to end of file.
* Add newline to end of file.
* Add newline to end of file.
* Debug variable. Should be getting set but receiving errors on Fedora.
* Add newline to end of file.
* Fix debug property, var not name.
* Fix show-config. Change show-config-all to only hit active files, not backups.
* Uncomment commented workstation.
* Add commands to edit files.
* Attempt to fix gitlab installer variables.
* Attempt to fix gitlab play variable.
* Replacing `ling` for `{{ user }}`.
* Remove TODO.
* Remove `config_dir` and move provision config back near top.
* `user_root` is not needed, already moved to /usr/local/etc/.
* Add value for running anything at all. This allows user to set up files before first run.
* Reduce the check frequency,
* Ensure files are printed in correct order. Also add a newline between each.
* Only send file if it exists, and then remove it if it sends successfully.
* Always set the destination variables.
* Only run the scp for systems without sshfs. Forgot that system variables were shared between the two, and do not want to scp the files to themselves then delete the files from the mount.
2021-12-05 18:08:51 -06:00
|
|
|
|
2021-12-24 14:55:21 -06:00
|
|
|
- name: General | Account Management | Provisioning Configuration | General | List
|
General Enhancements, NixOS Support (#47)
* Begin adding Nix.
* Install LBRY from Nix since its Flatpak is no longer supported..
* Got the global install to work, now just figuring out why LBRY won't work.
* Add alias to blow away dev branch and start back up from remote or main.
* Nix install not really working, requires manual intervention, maybe add to setup.sh or just try NixOS and see if it can 'replace' this entire Ansible project and cease the use of multiple operating systems.
* Start working on having a path for NixOS.
* Add NixOS.
* Skip the installer portion if using NixOS.
* Start including more tasks. ALl work besides GNOME due to psutil, even though it is included in configuration.nix.
* This should have never been added. Was an accident if it snuck though.
* Test using env rather than hard-coded bash path.
* Use variables, start thinking about future.
* Add file to manage setting up NixOS for the first or any subsequent times.
* Use the new nixos.sh script.
* Ensure /usr/local/bin is in PATH.
* Do not use * inside of "" for ls.
* Add filename cleanup shortcut.
* Add a clean option as well as a few bugfixes and checking that convert is installed.
* Use underscores in filenames and remove plurality.
* Bring the file into better column compliance.
* Stop running the dconf psutil failures against NixOS for now.
* Ensure the old names of scripts are removed from bin.
* Clean filename fixes as well as a traversing version.
* Remove extra spacing.
* Begin adding swapfile creation.
* Add dangerous code reset command.
* Add some cleaning for NixOS package manager.
* The ~ was being taken literally and created as a new folder.
* More work on swap files, and a new ansible.nix file.
* Fix the swap confuration line.
* Finish the swap configuration by checking if it already exists. Always keep the fstab line in existence.
* Reorder and enhance the update function for NixOS.
* Add comment.
* Start working on dconf for NixOS since don't have home-manager working yet in configration.nix.
* Add notes.
* If the file was created, make sure the user owns it and can edit by default.
* Favorites are working and only need maintained in one place! :)
* Add .zshrc for GNOME settings on NixOS.
* Add most other settings that are done manually post-install. Report any failures with their placement.
* FINALLY! Keyboard shortcuts and some final Gnome Tweak settings!
* Add night light settings.
* Move around some comments.
* Pull first then deal with any merge issues, rather than trying to push when there are things to pull.
* Test removing the dconf commands for non-NixOS.
* Alter output; remove extra newlines and add cache verbosity.
* dconf in rc files is working on Ubuntu!
* Add delete. Fix filename quotes. Other enhancements.
* Create new folder chain if clean changed directory names.
* Add TBD about changing the directory structure.
* Only say success if the file really exists. Skip if conversion fails.
* Only say success if the file really exists. Skip if conversion fails.
* Add quotes around dirname.
* Add quotes around the entire directory tree.
* Add quotes to comment in case it ever gets used.
* Add a bittorrent client.
* Disable Bluetooth on all devices, it's normally off anyways.
* Fix comments, this enables not disables.
* Create new services report.
* Add services report to main area and move all reports to NixOS area.
* Fix swap file variable name for non-NixOS distros.
* Add godot editor.
* Re-add extra programs Geary and OpenShot for variety.
* Shorten the output for 80 char terminals.
* Add Code-OSS for when Codium is having issues.
* Allow code-oss to be installed.
* Add the full desktop entry for Code-OSS.
* Ansible handles the newlines, prevent the -e from getting into the file.
* Enhance newlines in nmap report.
* Add NixOS.
2023-10-17 04:30:36 -07:00
|
|
|
set_fact:
|
2021-12-24 14:55:21 -06:00
|
|
|
provision_variables: "{{ provision_variables | combine(item) }}"
|
Hosts Variable Refactor, User Name Refactor, Metasploit, Brave on Fedora, Aliases (#19)
* Add Brave to Fedora (DNF).
* First attempt to add metasploit installer.
* Fix check for Linux and macOS to use System, not Distro.
* Add more memorable aliases for msfconsole.
* Telegraf is attemping to install doube-time since hosts match both localhost and hostname.
* Add missing pipe.
* Attempt to fix flatpak play no longer being able to find user_ling var. Don't see anything in the dev branch which would have changed this behavior though.
* Add note for future removal.
* Use general gather for all groups. Move user variables to it.
* Feodra Workstation succeeds now! Add newline to end of file.
* First attempt at doing host variables via local files.
* Try using ini as lookup.
* Remove "-" typo.
* Add an initial gather even though it may not have all values properly populated on a machine's first run.
* Fix typo in ignore.
* Try default values.
* Try defaults without quotes.
* Add a section header. Add a default back.
* Rename section to global.
* Add workstation provision file. Change variables to require true. Only load config file if hosts is not being used.
* Put flags back on Dell so that programs are not removed while configuring files.
* Add provision config read to workstation.
* Go ahead and force config files for hosts. Only affects dev branch until PR. Start making miner and server files.
* Change {{}} to (()) in comments to avoid undefined variable error.
* Attempt to modify existing task groups instead of moving all tasks to one large group.
* Try to use blocks.
* Name blocks and remove redundant calls.
* Do the bare minimum for miner and server so the variables are at least defined.
* Ensure Server and Miner look at their own files.
* Test how block variables are handled.
* Are the variables true Booleans, not strings??
* Change exits to tests so we can see which ones work.
* Add more tests.
* Add the test results.
* Add config_dir for plays to use when making any config files.
* Move provision config dir.
* Add results of test.
* Remove the exit. Fix the blocks' whens.
* Do provision after starting, that way all facts exist.
* Fix all "true"'s.
* Adjust variable checks for provision_config changes.
* Change gui to wrk. Add aliases to cat files.
* Comment entire hosts file.
* Add localhost,
* Try localhost rather than host file group.
* Fix typo in "prov_dir".
* Add newline to end of file.
* Add newline to end of file.
* Add newline to end of file.
* Debug variable. Should be getting set but receiving errors on Fedora.
* Add newline to end of file.
* Fix debug property, var not name.
* Fix show-config. Change show-config-all to only hit active files, not backups.
* Uncomment commented workstation.
* Add commands to edit files.
* Attempt to fix gitlab installer variables.
* Attempt to fix gitlab play variable.
* Replacing `ling` for `{{ user }}`.
* Remove TODO.
* Remove `config_dir` and move provision config back near top.
* `user_root` is not needed, already moved to /usr/local/etc/.
* Add value for running anything at all. This allows user to set up files before first run.
* Reduce the check frequency,
* Ensure files are printed in correct order. Also add a newline between each.
* Only send file if it exists, and then remove it if it sends successfully.
* Always set the destination variables.
* Only run the scp for systems without sshfs. Forgot that system variables were shared between the two, and do not want to scp the files to themselves then delete the files from the mount.
2021-12-05 18:08:51 -06:00
|
|
|
loop:
|
2021-12-24 14:55:21 -06:00
|
|
|
- { 'provision': "{{ provision }}" }
|
|
|
|
- { 'user': "{{ user }}" }
|
|
|
|
- { 'user_desc': "{{ user_desc }}" }
|
|
|
|
- { 'branch': "{{ branch }}" }
|
|
|
|
- { 'pentesting': "{{ pentesting }}" }
|
2022-12-03 15:28:29 -06:00
|
|
|
- { 'no_telem': "{{ no_telem }}" }
|
|
|
|
- { 'battery': "{{ battery }}" }
|
General Enhancements, NixOS Support (#47)
* Begin adding Nix.
* Install LBRY from Nix since its Flatpak is no longer supported..
* Got the global install to work, now just figuring out why LBRY won't work.
* Add alias to blow away dev branch and start back up from remote or main.
* Nix install not really working, requires manual intervention, maybe add to setup.sh or just try NixOS and see if it can 'replace' this entire Ansible project and cease the use of multiple operating systems.
* Start working on having a path for NixOS.
* Add NixOS.
* Skip the installer portion if using NixOS.
* Start including more tasks. ALl work besides GNOME due to psutil, even though it is included in configuration.nix.
* This should have never been added. Was an accident if it snuck though.
* Test using env rather than hard-coded bash path.
* Use variables, start thinking about future.
* Add file to manage setting up NixOS for the first or any subsequent times.
* Use the new nixos.sh script.
* Ensure /usr/local/bin is in PATH.
* Do not use * inside of "" for ls.
* Add filename cleanup shortcut.
* Add a clean option as well as a few bugfixes and checking that convert is installed.
* Use underscores in filenames and remove plurality.
* Bring the file into better column compliance.
* Stop running the dconf psutil failures against NixOS for now.
* Ensure the old names of scripts are removed from bin.
* Clean filename fixes as well as a traversing version.
* Remove extra spacing.
* Begin adding swapfile creation.
* Add dangerous code reset command.
* Add some cleaning for NixOS package manager.
* The ~ was being taken literally and created as a new folder.
* More work on swap files, and a new ansible.nix file.
* Fix the swap confuration line.
* Finish the swap configuration by checking if it already exists. Always keep the fstab line in existence.
* Reorder and enhance the update function for NixOS.
* Add comment.
* Start working on dconf for NixOS since don't have home-manager working yet in configration.nix.
* Add notes.
* If the file was created, make sure the user owns it and can edit by default.
* Favorites are working and only need maintained in one place! :)
* Add .zshrc for GNOME settings on NixOS.
* Add most other settings that are done manually post-install. Report any failures with their placement.
* FINALLY! Keyboard shortcuts and some final Gnome Tweak settings!
* Add night light settings.
* Move around some comments.
* Pull first then deal with any merge issues, rather than trying to push when there are things to pull.
* Test removing the dconf commands for non-NixOS.
* Alter output; remove extra newlines and add cache verbosity.
* dconf in rc files is working on Ubuntu!
* Add delete. Fix filename quotes. Other enhancements.
* Create new folder chain if clean changed directory names.
* Add TBD about changing the directory structure.
* Only say success if the file really exists. Skip if conversion fails.
* Only say success if the file really exists. Skip if conversion fails.
* Add quotes around dirname.
* Add quotes around the entire directory tree.
* Add quotes to comment in case it ever gets used.
* Add a bittorrent client.
* Disable Bluetooth on all devices, it's normally off anyways.
* Fix comments, this enables not disables.
* Create new services report.
* Add services report to main area and move all reports to NixOS area.
* Fix swap file variable name for non-NixOS distros.
* Add godot editor.
* Re-add extra programs Geary and OpenShot for variety.
* Shorten the output for 80 char terminals.
* Add Code-OSS for when Codium is having issues.
* Allow code-oss to be installed.
* Add the full desktop entry for Code-OSS.
* Ansible handles the newlines, prevent the -e from getting into the file.
* Enhance newlines in nmap report.
* Add NixOS.
2023-10-17 04:30:36 -07:00
|
|
|
- { 'swap_block': "{{ swap_block }}" }
|
|
|
|
- { 'swap_count': "{{ swap_count }}" }
|
|
|
|
- { 'swap_file': "{{ swap_file }}" }
|
2024-01-30 05:25:50 -07:00
|
|
|
- { 'sshd_port': "{{ sshd_port }}" }
|
2025-01-02 13:03:50 -07:00
|
|
|
- { 'git_host': "{{ git_host }}" }
|
|
|
|
- { 'git_user': "{{ git_user }}" }
|
|
|
|
- { 'git_project': "{{ git_project }}" }
|
|
|
|
- { 'git_ssh_port': "{{ git_ssh_port }}" }
|
Hosts Variable Refactor, User Name Refactor, Metasploit, Brave on Fedora, Aliases (#19)
* Add Brave to Fedora (DNF).
* First attempt to add metasploit installer.
* Fix check for Linux and macOS to use System, not Distro.
* Add more memorable aliases for msfconsole.
* Telegraf is attemping to install doube-time since hosts match both localhost and hostname.
* Add missing pipe.
* Attempt to fix flatpak play no longer being able to find user_ling var. Don't see anything in the dev branch which would have changed this behavior though.
* Add note for future removal.
* Use general gather for all groups. Move user variables to it.
* Feodra Workstation succeeds now! Add newline to end of file.
* First attempt at doing host variables via local files.
* Try using ini as lookup.
* Remove "-" typo.
* Add an initial gather even though it may not have all values properly populated on a machine's first run.
* Fix typo in ignore.
* Try default values.
* Try defaults without quotes.
* Add a section header. Add a default back.
* Rename section to global.
* Add workstation provision file. Change variables to require true. Only load config file if hosts is not being used.
* Put flags back on Dell so that programs are not removed while configuring files.
* Add provision config read to workstation.
* Go ahead and force config files for hosts. Only affects dev branch until PR. Start making miner and server files.
* Change {{}} to (()) in comments to avoid undefined variable error.
* Attempt to modify existing task groups instead of moving all tasks to one large group.
* Try to use blocks.
* Name blocks and remove redundant calls.
* Do the bare minimum for miner and server so the variables are at least defined.
* Ensure Server and Miner look at their own files.
* Test how block variables are handled.
* Are the variables true Booleans, not strings??
* Change exits to tests so we can see which ones work.
* Add more tests.
* Add the test results.
* Add config_dir for plays to use when making any config files.
* Move provision config dir.
* Add results of test.
* Remove the exit. Fix the blocks' whens.
* Do provision after starting, that way all facts exist.
* Fix all "true"'s.
* Adjust variable checks for provision_config changes.
* Change gui to wrk. Add aliases to cat files.
* Comment entire hosts file.
* Add localhost,
* Try localhost rather than host file group.
* Fix typo in "prov_dir".
* Add newline to end of file.
* Add newline to end of file.
* Add newline to end of file.
* Debug variable. Should be getting set but receiving errors on Fedora.
* Add newline to end of file.
* Fix debug property, var not name.
* Fix show-config. Change show-config-all to only hit active files, not backups.
* Uncomment commented workstation.
* Add commands to edit files.
* Attempt to fix gitlab installer variables.
* Attempt to fix gitlab play variable.
* Replacing `ling` for `{{ user }}`.
* Remove TODO.
* Remove `config_dir` and move provision config back near top.
* `user_root` is not needed, already moved to /usr/local/etc/.
* Add value for running anything at all. This allows user to set up files before first run.
* Reduce the check frequency,
* Ensure files are printed in correct order. Also add a newline between each.
* Only send file if it exists, and then remove it if it sends successfully.
* Always set the destination variables.
* Only run the scp for systems without sshfs. Forgot that system variables were shared between the two, and do not want to scp the files to themselves then delete the files from the mount.
2021-12-05 18:08:51 -06:00
|
|
|
|
|
|
|
|
|
|
|
## Workstation ##
|
|
|
|
|
|
|
|
- name: General | Account Management | Provisioning Configuration | Workstation | Create
|
|
|
|
blockinfile:
|
|
|
|
path: "{{ wrk_file }}"
|
|
|
|
block: |
|
|
|
|
;;;;;;; Available options - all require lowercase values ;;;;;;
|
|
|
|
;
|
|
|
|
; enable : Set to true for system to be considered a workstation.
|
|
|
|
;
|
|
|
|
; coding : Set to true for installation of code editors (VSCode, PyCharm, Android Studio)
|
|
|
|
;
|
|
|
|
; editing : Set to true for installation of Audio/Video editors (Shotcut, Audacity, OBS Stdio, GIMP)
|
|
|
|
;
|
|
|
|
; gaming : Set to true for installation of gaming software (Steam, Lutris)
|
|
|
|
;
|
|
|
|
; rdp : Set to true for installation of RDP protocol
|
|
|
|
; CURRENTLY FREEBSD-ONLY
|
|
|
|
;
|
|
|
|
; vnc : Set to true for installation of VNC protocol
|
2021-12-17 17:34:21 -06:00
|
|
|
; UNFINISHED/UNTESTED
|
Hosts Variable Refactor, User Name Refactor, Metasploit, Brave on Fedora, Aliases (#19)
* Add Brave to Fedora (DNF).
* First attempt to add metasploit installer.
* Fix check for Linux and macOS to use System, not Distro.
* Add more memorable aliases for msfconsole.
* Telegraf is attemping to install doube-time since hosts match both localhost and hostname.
* Add missing pipe.
* Attempt to fix flatpak play no longer being able to find user_ling var. Don't see anything in the dev branch which would have changed this behavior though.
* Add note for future removal.
* Use general gather for all groups. Move user variables to it.
* Feodra Workstation succeeds now! Add newline to end of file.
* First attempt at doing host variables via local files.
* Try using ini as lookup.
* Remove "-" typo.
* Add an initial gather even though it may not have all values properly populated on a machine's first run.
* Fix typo in ignore.
* Try default values.
* Try defaults without quotes.
* Add a section header. Add a default back.
* Rename section to global.
* Add workstation provision file. Change variables to require true. Only load config file if hosts is not being used.
* Put flags back on Dell so that programs are not removed while configuring files.
* Add provision config read to workstation.
* Go ahead and force config files for hosts. Only affects dev branch until PR. Start making miner and server files.
* Change {{}} to (()) in comments to avoid undefined variable error.
* Attempt to modify existing task groups instead of moving all tasks to one large group.
* Try to use blocks.
* Name blocks and remove redundant calls.
* Do the bare minimum for miner and server so the variables are at least defined.
* Ensure Server and Miner look at their own files.
* Test how block variables are handled.
* Are the variables true Booleans, not strings??
* Change exits to tests so we can see which ones work.
* Add more tests.
* Add the test results.
* Add config_dir for plays to use when making any config files.
* Move provision config dir.
* Add results of test.
* Remove the exit. Fix the blocks' whens.
* Do provision after starting, that way all facts exist.
* Fix all "true"'s.
* Adjust variable checks for provision_config changes.
* Change gui to wrk. Add aliases to cat files.
* Comment entire hosts file.
* Add localhost,
* Try localhost rather than host file group.
* Fix typo in "prov_dir".
* Add newline to end of file.
* Add newline to end of file.
* Add newline to end of file.
* Debug variable. Should be getting set but receiving errors on Fedora.
* Add newline to end of file.
* Fix debug property, var not name.
* Fix show-config. Change show-config-all to only hit active files, not backups.
* Uncomment commented workstation.
* Add commands to edit files.
* Attempt to fix gitlab installer variables.
* Attempt to fix gitlab play variable.
* Replacing `ling` for `{{ user }}`.
* Remove TODO.
* Remove `config_dir` and move provision config back near top.
* `user_root` is not needed, already moved to /usr/local/etc/.
* Add value for running anything at all. This allows user to set up files before first run.
* Reduce the check frequency,
* Ensure files are printed in correct order. Also add a newline between each.
* Only send file if it exists, and then remove it if it sends successfully.
* Always set the destination variables.
* Only run the scp for systems without sshfs. Forgot that system variables were shared between the two, and do not want to scp the files to themselves then delete the files from the mount.
2021-12-05 18:08:51 -06:00
|
|
|
;
|
2022-01-10 13:41:54 +00:00
|
|
|
; bsd_gpu : Set to [] to install GPU driver
|
|
|
|
; Example: amdgpu
|
|
|
|
;
|
2022-12-03 15:28:29 -06:00
|
|
|
; mobile : Set to true if not using an amd64 processor.
|
2022-12-03 17:07:54 -06:00
|
|
|
; Also used to disable tasks not helpful for Pinephone.
|
2022-12-03 15:28:29 -06:00
|
|
|
;
|
Hosts Variable Refactor, User Name Refactor, Metasploit, Brave on Fedora, Aliases (#19)
* Add Brave to Fedora (DNF).
* First attempt to add metasploit installer.
* Fix check for Linux and macOS to use System, not Distro.
* Add more memorable aliases for msfconsole.
* Telegraf is attemping to install doube-time since hosts match both localhost and hostname.
* Add missing pipe.
* Attempt to fix flatpak play no longer being able to find user_ling var. Don't see anything in the dev branch which would have changed this behavior though.
* Add note for future removal.
* Use general gather for all groups. Move user variables to it.
* Feodra Workstation succeeds now! Add newline to end of file.
* First attempt at doing host variables via local files.
* Try using ini as lookup.
* Remove "-" typo.
* Add an initial gather even though it may not have all values properly populated on a machine's first run.
* Fix typo in ignore.
* Try default values.
* Try defaults without quotes.
* Add a section header. Add a default back.
* Rename section to global.
* Add workstation provision file. Change variables to require true. Only load config file if hosts is not being used.
* Put flags back on Dell so that programs are not removed while configuring files.
* Add provision config read to workstation.
* Go ahead and force config files for hosts. Only affects dev branch until PR. Start making miner and server files.
* Change {{}} to (()) in comments to avoid undefined variable error.
* Attempt to modify existing task groups instead of moving all tasks to one large group.
* Try to use blocks.
* Name blocks and remove redundant calls.
* Do the bare minimum for miner and server so the variables are at least defined.
* Ensure Server and Miner look at their own files.
* Test how block variables are handled.
* Are the variables true Booleans, not strings??
* Change exits to tests so we can see which ones work.
* Add more tests.
* Add the test results.
* Add config_dir for plays to use when making any config files.
* Move provision config dir.
* Add results of test.
* Remove the exit. Fix the blocks' whens.
* Do provision after starting, that way all facts exist.
* Fix all "true"'s.
* Adjust variable checks for provision_config changes.
* Change gui to wrk. Add aliases to cat files.
* Comment entire hosts file.
* Add localhost,
* Try localhost rather than host file group.
* Fix typo in "prov_dir".
* Add newline to end of file.
* Add newline to end of file.
* Add newline to end of file.
* Debug variable. Should be getting set but receiving errors on Fedora.
* Add newline to end of file.
* Fix debug property, var not name.
* Fix show-config. Change show-config-all to only hit active files, not backups.
* Uncomment commented workstation.
* Add commands to edit files.
* Attempt to fix gitlab installer variables.
* Attempt to fix gitlab play variable.
* Replacing `ling` for `{{ user }}`.
* Remove TODO.
* Remove `config_dir` and move provision config back near top.
* `user_root` is not needed, already moved to /usr/local/etc/.
* Add value for running anything at all. This allows user to set up files before first run.
* Reduce the check frequency,
* Ensure files are printed in correct order. Also add a newline between each.
* Only send file if it exists, and then remove it if it sends successfully.
* Always set the destination variables.
* Only run the scp for systems without sshfs. Forgot that system variables were shared between the two, and do not want to scp the files to themselves then delete the files from the mount.
2021-12-05 18:08:51 -06:00
|
|
|
[global]
|
|
|
|
marker: '; {mark} MANAGED BY ANSIBLE | Workstation Config'
|
|
|
|
state: present
|
|
|
|
create: yes
|
|
|
|
backup: yes
|
|
|
|
|
|
|
|
- name: General | Account Management | Provisioning Configuration | Workstation | Load
|
|
|
|
set_fact:
|
|
|
|
workstation: "{{ lookup('ini', 'enable file={{wrk_file}} default=false') }}"
|
|
|
|
coding: "{{ lookup('ini', 'coding file={{wrk_file}} default=false') }}"
|
|
|
|
editing: "{{ lookup('ini', 'editing file={{wrk_file}} default=false') }}"
|
|
|
|
gaming: "{{ lookup('ini', 'gaming file={{wrk_file}} default=false') }}"
|
|
|
|
rdp: "{{ lookup('ini', 'rdp file={{wrk_file}} default=false') }}"
|
|
|
|
vnc: "{{ lookup('ini', 'vnc file={{wrk_file}} default=false') }}"
|
2022-01-10 13:41:54 +00:00
|
|
|
bsd_gpu: "{{ lookup('ini', 'bsd_gpu file={{wrk_file}} default=false') }}"
|
2022-12-03 15:28:29 -06:00
|
|
|
mobile: "{{ lookup('ini', 'mobile file={{wrk_file}} default=false') }}"
|
Hosts Variable Refactor, User Name Refactor, Metasploit, Brave on Fedora, Aliases (#19)
* Add Brave to Fedora (DNF).
* First attempt to add metasploit installer.
* Fix check for Linux and macOS to use System, not Distro.
* Add more memorable aliases for msfconsole.
* Telegraf is attemping to install doube-time since hosts match both localhost and hostname.
* Add missing pipe.
* Attempt to fix flatpak play no longer being able to find user_ling var. Don't see anything in the dev branch which would have changed this behavior though.
* Add note for future removal.
* Use general gather for all groups. Move user variables to it.
* Feodra Workstation succeeds now! Add newline to end of file.
* First attempt at doing host variables via local files.
* Try using ini as lookup.
* Remove "-" typo.
* Add an initial gather even though it may not have all values properly populated on a machine's first run.
* Fix typo in ignore.
* Try default values.
* Try defaults without quotes.
* Add a section header. Add a default back.
* Rename section to global.
* Add workstation provision file. Change variables to require true. Only load config file if hosts is not being used.
* Put flags back on Dell so that programs are not removed while configuring files.
* Add provision config read to workstation.
* Go ahead and force config files for hosts. Only affects dev branch until PR. Start making miner and server files.
* Change {{}} to (()) in comments to avoid undefined variable error.
* Attempt to modify existing task groups instead of moving all tasks to one large group.
* Try to use blocks.
* Name blocks and remove redundant calls.
* Do the bare minimum for miner and server so the variables are at least defined.
* Ensure Server and Miner look at their own files.
* Test how block variables are handled.
* Are the variables true Booleans, not strings??
* Change exits to tests so we can see which ones work.
* Add more tests.
* Add the test results.
* Add config_dir for plays to use when making any config files.
* Move provision config dir.
* Add results of test.
* Remove the exit. Fix the blocks' whens.
* Do provision after starting, that way all facts exist.
* Fix all "true"'s.
* Adjust variable checks for provision_config changes.
* Change gui to wrk. Add aliases to cat files.
* Comment entire hosts file.
* Add localhost,
* Try localhost rather than host file group.
* Fix typo in "prov_dir".
* Add newline to end of file.
* Add newline to end of file.
* Add newline to end of file.
* Debug variable. Should be getting set but receiving errors on Fedora.
* Add newline to end of file.
* Fix debug property, var not name.
* Fix show-config. Change show-config-all to only hit active files, not backups.
* Uncomment commented workstation.
* Add commands to edit files.
* Attempt to fix gitlab installer variables.
* Attempt to fix gitlab play variable.
* Replacing `ling` for `{{ user }}`.
* Remove TODO.
* Remove `config_dir` and move provision config back near top.
* `user_root` is not needed, already moved to /usr/local/etc/.
* Add value for running anything at all. This allows user to set up files before first run.
* Reduce the check frequency,
* Ensure files are printed in correct order. Also add a newline between each.
* Only send file if it exists, and then remove it if it sends successfully.
* Always set the destination variables.
* Only run the scp for systems without sshfs. Forgot that system variables were shared between the two, and do not want to scp the files to themselves then delete the files from the mount.
2021-12-05 18:08:51 -06:00
|
|
|
|
2021-12-24 14:55:21 -06:00
|
|
|
- name: General | Account Management | Provisioning Configuration | Workstation | List
|
General Enhancements, NixOS Support (#47)
* Begin adding Nix.
* Install LBRY from Nix since its Flatpak is no longer supported..
* Got the global install to work, now just figuring out why LBRY won't work.
* Add alias to blow away dev branch and start back up from remote or main.
* Nix install not really working, requires manual intervention, maybe add to setup.sh or just try NixOS and see if it can 'replace' this entire Ansible project and cease the use of multiple operating systems.
* Start working on having a path for NixOS.
* Add NixOS.
* Skip the installer portion if using NixOS.
* Start including more tasks. ALl work besides GNOME due to psutil, even though it is included in configuration.nix.
* This should have never been added. Was an accident if it snuck though.
* Test using env rather than hard-coded bash path.
* Use variables, start thinking about future.
* Add file to manage setting up NixOS for the first or any subsequent times.
* Use the new nixos.sh script.
* Ensure /usr/local/bin is in PATH.
* Do not use * inside of "" for ls.
* Add filename cleanup shortcut.
* Add a clean option as well as a few bugfixes and checking that convert is installed.
* Use underscores in filenames and remove plurality.
* Bring the file into better column compliance.
* Stop running the dconf psutil failures against NixOS for now.
* Ensure the old names of scripts are removed from bin.
* Clean filename fixes as well as a traversing version.
* Remove extra spacing.
* Begin adding swapfile creation.
* Add dangerous code reset command.
* Add some cleaning for NixOS package manager.
* The ~ was being taken literally and created as a new folder.
* More work on swap files, and a new ansible.nix file.
* Fix the swap confuration line.
* Finish the swap configuration by checking if it already exists. Always keep the fstab line in existence.
* Reorder and enhance the update function for NixOS.
* Add comment.
* Start working on dconf for NixOS since don't have home-manager working yet in configration.nix.
* Add notes.
* If the file was created, make sure the user owns it and can edit by default.
* Favorites are working and only need maintained in one place! :)
* Add .zshrc for GNOME settings on NixOS.
* Add most other settings that are done manually post-install. Report any failures with their placement.
* FINALLY! Keyboard shortcuts and some final Gnome Tweak settings!
* Add night light settings.
* Move around some comments.
* Pull first then deal with any merge issues, rather than trying to push when there are things to pull.
* Test removing the dconf commands for non-NixOS.
* Alter output; remove extra newlines and add cache verbosity.
* dconf in rc files is working on Ubuntu!
* Add delete. Fix filename quotes. Other enhancements.
* Create new folder chain if clean changed directory names.
* Add TBD about changing the directory structure.
* Only say success if the file really exists. Skip if conversion fails.
* Only say success if the file really exists. Skip if conversion fails.
* Add quotes around dirname.
* Add quotes around the entire directory tree.
* Add quotes to comment in case it ever gets used.
* Add a bittorrent client.
* Disable Bluetooth on all devices, it's normally off anyways.
* Fix comments, this enables not disables.
* Create new services report.
* Add services report to main area and move all reports to NixOS area.
* Fix swap file variable name for non-NixOS distros.
* Add godot editor.
* Re-add extra programs Geary and OpenShot for variety.
* Shorten the output for 80 char terminals.
* Add Code-OSS for when Codium is having issues.
* Allow code-oss to be installed.
* Add the full desktop entry for Code-OSS.
* Ansible handles the newlines, prevent the -e from getting into the file.
* Enhance newlines in nmap report.
* Add NixOS.
2023-10-17 04:30:36 -07:00
|
|
|
set_fact:
|
2021-12-24 14:55:21 -06:00
|
|
|
provision_variables: "{{ provision_variables | combine(item) }}"
|
Hosts Variable Refactor, User Name Refactor, Metasploit, Brave on Fedora, Aliases (#19)
* Add Brave to Fedora (DNF).
* First attempt to add metasploit installer.
* Fix check for Linux and macOS to use System, not Distro.
* Add more memorable aliases for msfconsole.
* Telegraf is attemping to install doube-time since hosts match both localhost and hostname.
* Add missing pipe.
* Attempt to fix flatpak play no longer being able to find user_ling var. Don't see anything in the dev branch which would have changed this behavior though.
* Add note for future removal.
* Use general gather for all groups. Move user variables to it.
* Feodra Workstation succeeds now! Add newline to end of file.
* First attempt at doing host variables via local files.
* Try using ini as lookup.
* Remove "-" typo.
* Add an initial gather even though it may not have all values properly populated on a machine's first run.
* Fix typo in ignore.
* Try default values.
* Try defaults without quotes.
* Add a section header. Add a default back.
* Rename section to global.
* Add workstation provision file. Change variables to require true. Only load config file if hosts is not being used.
* Put flags back on Dell so that programs are not removed while configuring files.
* Add provision config read to workstation.
* Go ahead and force config files for hosts. Only affects dev branch until PR. Start making miner and server files.
* Change {{}} to (()) in comments to avoid undefined variable error.
* Attempt to modify existing task groups instead of moving all tasks to one large group.
* Try to use blocks.
* Name blocks and remove redundant calls.
* Do the bare minimum for miner and server so the variables are at least defined.
* Ensure Server and Miner look at their own files.
* Test how block variables are handled.
* Are the variables true Booleans, not strings??
* Change exits to tests so we can see which ones work.
* Add more tests.
* Add the test results.
* Add config_dir for plays to use when making any config files.
* Move provision config dir.
* Add results of test.
* Remove the exit. Fix the blocks' whens.
* Do provision after starting, that way all facts exist.
* Fix all "true"'s.
* Adjust variable checks for provision_config changes.
* Change gui to wrk. Add aliases to cat files.
* Comment entire hosts file.
* Add localhost,
* Try localhost rather than host file group.
* Fix typo in "prov_dir".
* Add newline to end of file.
* Add newline to end of file.
* Add newline to end of file.
* Debug variable. Should be getting set but receiving errors on Fedora.
* Add newline to end of file.
* Fix debug property, var not name.
* Fix show-config. Change show-config-all to only hit active files, not backups.
* Uncomment commented workstation.
* Add commands to edit files.
* Attempt to fix gitlab installer variables.
* Attempt to fix gitlab play variable.
* Replacing `ling` for `{{ user }}`.
* Remove TODO.
* Remove `config_dir` and move provision config back near top.
* `user_root` is not needed, already moved to /usr/local/etc/.
* Add value for running anything at all. This allows user to set up files before first run.
* Reduce the check frequency,
* Ensure files are printed in correct order. Also add a newline between each.
* Only send file if it exists, and then remove it if it sends successfully.
* Always set the destination variables.
* Only run the scp for systems without sshfs. Forgot that system variables were shared between the two, and do not want to scp the files to themselves then delete the files from the mount.
2021-12-05 18:08:51 -06:00
|
|
|
loop:
|
2021-12-24 14:55:21 -06:00
|
|
|
- { 'workstation': "{{ workstation }}" }
|
|
|
|
- { 'coding': "{{ coding }}" }
|
|
|
|
- { 'editing': "{{ editing }}" }
|
|
|
|
- { 'gaming': "{{ gaming }}" }
|
|
|
|
- { 'rdp': "{{ rdp }}" }
|
|
|
|
- { 'vnc': "{{ vnc }}" }
|
2022-01-10 13:41:54 +00:00
|
|
|
- { 'bsd_gpu': "{{ bsd_gpu }}" }
|
2022-12-03 15:28:29 -06:00
|
|
|
- { 'mobile': "{{ mobile }}" }
|
2022-01-10 13:41:54 +00:00
|
|
|
|
|
|
|
# No longer mining, this is now considered deprecated.
|
|
|
|
### Miner ##
|
|
|
|
#
|
|
|
|
#- name: General | Account Management | Provisioning Configuration | Miner | Create
|
|
|
|
# blockinfile:
|
|
|
|
# path: "{{ mnr_file }}"
|
|
|
|
# block: |
|
|
|
|
# ;;;;;;; Available options - all require lowercase values ;;;;;;
|
|
|
|
# ;
|
|
|
|
# ; enable : Set to true for system to be considered a miner.
|
|
|
|
# ;
|
|
|
|
# ; amdgpu : Set to true for installation of AMDGPU-Pro drivers on Ubuntu (20.04 preferred)
|
|
|
|
# ;
|
|
|
|
# ; nanominer : Set to true for installation of nanominer
|
|
|
|
# ;
|
General Enhancements, NixOS Support (#47)
* Begin adding Nix.
* Install LBRY from Nix since its Flatpak is no longer supported..
* Got the global install to work, now just figuring out why LBRY won't work.
* Add alias to blow away dev branch and start back up from remote or main.
* Nix install not really working, requires manual intervention, maybe add to setup.sh or just try NixOS and see if it can 'replace' this entire Ansible project and cease the use of multiple operating systems.
* Start working on having a path for NixOS.
* Add NixOS.
* Skip the installer portion if using NixOS.
* Start including more tasks. ALl work besides GNOME due to psutil, even though it is included in configuration.nix.
* This should have never been added. Was an accident if it snuck though.
* Test using env rather than hard-coded bash path.
* Use variables, start thinking about future.
* Add file to manage setting up NixOS for the first or any subsequent times.
* Use the new nixos.sh script.
* Ensure /usr/local/bin is in PATH.
* Do not use * inside of "" for ls.
* Add filename cleanup shortcut.
* Add a clean option as well as a few bugfixes and checking that convert is installed.
* Use underscores in filenames and remove plurality.
* Bring the file into better column compliance.
* Stop running the dconf psutil failures against NixOS for now.
* Ensure the old names of scripts are removed from bin.
* Clean filename fixes as well as a traversing version.
* Remove extra spacing.
* Begin adding swapfile creation.
* Add dangerous code reset command.
* Add some cleaning for NixOS package manager.
* The ~ was being taken literally and created as a new folder.
* More work on swap files, and a new ansible.nix file.
* Fix the swap confuration line.
* Finish the swap configuration by checking if it already exists. Always keep the fstab line in existence.
* Reorder and enhance the update function for NixOS.
* Add comment.
* Start working on dconf for NixOS since don't have home-manager working yet in configration.nix.
* Add notes.
* If the file was created, make sure the user owns it and can edit by default.
* Favorites are working and only need maintained in one place! :)
* Add .zshrc for GNOME settings on NixOS.
* Add most other settings that are done manually post-install. Report any failures with their placement.
* FINALLY! Keyboard shortcuts and some final Gnome Tweak settings!
* Add night light settings.
* Move around some comments.
* Pull first then deal with any merge issues, rather than trying to push when there are things to pull.
* Test removing the dconf commands for non-NixOS.
* Alter output; remove extra newlines and add cache verbosity.
* dconf in rc files is working on Ubuntu!
* Add delete. Fix filename quotes. Other enhancements.
* Create new folder chain if clean changed directory names.
* Add TBD about changing the directory structure.
* Only say success if the file really exists. Skip if conversion fails.
* Only say success if the file really exists. Skip if conversion fails.
* Add quotes around dirname.
* Add quotes around the entire directory tree.
* Add quotes to comment in case it ever gets used.
* Add a bittorrent client.
* Disable Bluetooth on all devices, it's normally off anyways.
* Fix comments, this enables not disables.
* Create new services report.
* Add services report to main area and move all reports to NixOS area.
* Fix swap file variable name for non-NixOS distros.
* Add godot editor.
* Re-add extra programs Geary and OpenShot for variety.
* Shorten the output for 80 char terminals.
* Add Code-OSS for when Codium is having issues.
* Allow code-oss to be installed.
* Add the full desktop entry for Code-OSS.
* Ansible handles the newlines, prevent the -e from getting into the file.
* Enhance newlines in nmap report.
* Add NixOS.
2023-10-17 04:30:36 -07:00
|
|
|
# ; nanominer_cpu : Set to coin code that you'd like the CPU to work on
|
2022-01-10 13:41:54 +00:00
|
|
|
# ; Valid values: xmr
|
|
|
|
# ;
|
|
|
|
# ; nanominer_cpu_pool : Set to pool organization to use for CPU mining
|
|
|
|
# ; Valid values: nanopool
|
|
|
|
# ;
|
|
|
|
# ; nanominer_gpu : Set to coin code that you'd like the GPU to work on
|
|
|
|
# ; Valid values: eth
|
|
|
|
# ;
|
|
|
|
# ; nanominer_gpus : Set to comma list of GPU devices that should be used for nanominer
|
|
|
|
# ; Example: 0,2,3
|
|
|
|
# ;
|
|
|
|
# ; nanominer_gpu_pool : Set to pool organization to use for GPU mining
|
|
|
|
# ; Valid values: nanopool etherpool f2pool
|
|
|
|
# ;
|
|
|
|
# ; eth_minhashrate : Set to minimum hashrate over 10 minutes before restarting. Can accept M for Million and K for thousand.
|
|
|
|
# ; Example: 100K
|
|
|
|
# ;
|
|
|
|
# ; ethminer : Set to true for installation of ethminer
|
|
|
|
# ; UNFINISHED/UNTESTED
|
|
|
|
# ;
|
|
|
|
# ; nvidia : Set to true for NVidia support in ethminer.
|
|
|
|
# ; UNFINISHED/UNTESTED
|
|
|
|
# ;
|
|
|
|
# ; xmr_stak_cpu : Set to true for istallation
|
|
|
|
# ; UNFINISHED/UNTESTED
|
|
|
|
# ;
|
|
|
|
# [global]
|
|
|
|
# marker: '; {mark} MANAGED BY ANSIBLE | Miner Config'
|
|
|
|
# state: present
|
|
|
|
# create: yes
|
|
|
|
# backup: yes
|
|
|
|
#
|
|
|
|
#- name: General | Account Management | Provisioning Configuration | Miner | Load
|
|
|
|
# set_fact:
|
|
|
|
# miner: "{{ lookup('ini', 'enable file={{mnr_file}} default=false') }}"
|
|
|
|
# amdgpu: "{{ lookup('ini', 'amdgpu file={{mnr_file}} default=false') }}"
|
|
|
|
# nanominer: "{{ lookup('ini', 'nanominer file={{mnr_file}} default=false') }}"
|
|
|
|
# nanominer_cpu: "{{ lookup('ini', 'nanominer_cpu file={{mnr_file}} default=false') }}"
|
|
|
|
# nanominer_cpu_pool: "{{ lookup('ini', 'nanominer_cpu_pool file={{mnr_file}} default=false') }}"
|
|
|
|
# nanominer_gpu: "{{ lookup('ini', 'nanominer_gpu file={{mnr_file}} default=false') }}"
|
|
|
|
# nanominer_gpus: "{{ lookup('ini', 'nanominer_gpus file={{mnr_file}} default=false') }}"
|
|
|
|
# nanominer_gpu_pool: "{{ lookup('ini', 'nanominer_gpu_pool file={{mnr_file}} default=false') }}"
|
|
|
|
# eth_minhashrate: "{{ lookup('ini', 'eth_minhashrate file={{mnr_file}} default=false') }}"
|
|
|
|
# ethminer: "{{ lookup('ini', 'ethminer file={{mnr_file}} default=false') }}"
|
|
|
|
# nvidia: "{{ lookup('ini', 'nvidia file={{mnr_file}} default=false') }}"
|
|
|
|
# xmr_stak_cpu: "{{ lookup('ini', 'xmr_stak_cpu file={{mnr_file}} default=false') }}"
|
|
|
|
#
|
|
|
|
#- name: General | Account Management | Provisioning Configuration | Miner | List
|
General Enhancements, NixOS Support (#47)
* Begin adding Nix.
* Install LBRY from Nix since its Flatpak is no longer supported..
* Got the global install to work, now just figuring out why LBRY won't work.
* Add alias to blow away dev branch and start back up from remote or main.
* Nix install not really working, requires manual intervention, maybe add to setup.sh or just try NixOS and see if it can 'replace' this entire Ansible project and cease the use of multiple operating systems.
* Start working on having a path for NixOS.
* Add NixOS.
* Skip the installer portion if using NixOS.
* Start including more tasks. ALl work besides GNOME due to psutil, even though it is included in configuration.nix.
* This should have never been added. Was an accident if it snuck though.
* Test using env rather than hard-coded bash path.
* Use variables, start thinking about future.
* Add file to manage setting up NixOS for the first or any subsequent times.
* Use the new nixos.sh script.
* Ensure /usr/local/bin is in PATH.
* Do not use * inside of "" for ls.
* Add filename cleanup shortcut.
* Add a clean option as well as a few bugfixes and checking that convert is installed.
* Use underscores in filenames and remove plurality.
* Bring the file into better column compliance.
* Stop running the dconf psutil failures against NixOS for now.
* Ensure the old names of scripts are removed from bin.
* Clean filename fixes as well as a traversing version.
* Remove extra spacing.
* Begin adding swapfile creation.
* Add dangerous code reset command.
* Add some cleaning for NixOS package manager.
* The ~ was being taken literally and created as a new folder.
* More work on swap files, and a new ansible.nix file.
* Fix the swap confuration line.
* Finish the swap configuration by checking if it already exists. Always keep the fstab line in existence.
* Reorder and enhance the update function for NixOS.
* Add comment.
* Start working on dconf for NixOS since don't have home-manager working yet in configration.nix.
* Add notes.
* If the file was created, make sure the user owns it and can edit by default.
* Favorites are working and only need maintained in one place! :)
* Add .zshrc for GNOME settings on NixOS.
* Add most other settings that are done manually post-install. Report any failures with their placement.
* FINALLY! Keyboard shortcuts and some final Gnome Tweak settings!
* Add night light settings.
* Move around some comments.
* Pull first then deal with any merge issues, rather than trying to push when there are things to pull.
* Test removing the dconf commands for non-NixOS.
* Alter output; remove extra newlines and add cache verbosity.
* dconf in rc files is working on Ubuntu!
* Add delete. Fix filename quotes. Other enhancements.
* Create new folder chain if clean changed directory names.
* Add TBD about changing the directory structure.
* Only say success if the file really exists. Skip if conversion fails.
* Only say success if the file really exists. Skip if conversion fails.
* Add quotes around dirname.
* Add quotes around the entire directory tree.
* Add quotes to comment in case it ever gets used.
* Add a bittorrent client.
* Disable Bluetooth on all devices, it's normally off anyways.
* Fix comments, this enables not disables.
* Create new services report.
* Add services report to main area and move all reports to NixOS area.
* Fix swap file variable name for non-NixOS distros.
* Add godot editor.
* Re-add extra programs Geary and OpenShot for variety.
* Shorten the output for 80 char terminals.
* Add Code-OSS for when Codium is having issues.
* Allow code-oss to be installed.
* Add the full desktop entry for Code-OSS.
* Ansible handles the newlines, prevent the -e from getting into the file.
* Enhance newlines in nmap report.
* Add NixOS.
2023-10-17 04:30:36 -07:00
|
|
|
# set_fact:
|
2022-01-10 13:41:54 +00:00
|
|
|
# provision_variables: "{{ provision_variables | combine(item) }}"
|
|
|
|
# loop:
|
|
|
|
# - { 'miner': "{{ miner }}" }
|
|
|
|
# - { 'amdgpu': "{{ amdgpu }}" }
|
|
|
|
# - { 'nanominer': "{{ nanominer }}" }
|
|
|
|
# - { 'nanominer_cpu': "{{ nanominer_cpu }}" }
|
|
|
|
# - { 'nanominer_cpu_pool': "{{ nanominer_cpu_pool }}" }
|
|
|
|
# - { 'nanominer_gpu': "{{ nanominer_gpu }}" }
|
|
|
|
# - { 'nanominer_gpus': "{{ nanominer_gpus }}" }
|
|
|
|
# - { 'nanominer_gpu_pool': "{{ nanominer_gpu_pool }}" }
|
|
|
|
# - { 'eth_minhashrate': "{{ eth_minhashrate }}" }
|
|
|
|
# - { 'ethminer': "{{ ethminer }}" }
|
|
|
|
# - { 'nvidia': "{{ nvidia }}" }
|
|
|
|
# - { 'xmr_stak_cpu': "{{ xmr_stak_cpu }}" }
|
Hosts Variable Refactor, User Name Refactor, Metasploit, Brave on Fedora, Aliases (#19)
* Add Brave to Fedora (DNF).
* First attempt to add metasploit installer.
* Fix check for Linux and macOS to use System, not Distro.
* Add more memorable aliases for msfconsole.
* Telegraf is attemping to install doube-time since hosts match both localhost and hostname.
* Add missing pipe.
* Attempt to fix flatpak play no longer being able to find user_ling var. Don't see anything in the dev branch which would have changed this behavior though.
* Add note for future removal.
* Use general gather for all groups. Move user variables to it.
* Feodra Workstation succeeds now! Add newline to end of file.
* First attempt at doing host variables via local files.
* Try using ini as lookup.
* Remove "-" typo.
* Add an initial gather even though it may not have all values properly populated on a machine's first run.
* Fix typo in ignore.
* Try default values.
* Try defaults without quotes.
* Add a section header. Add a default back.
* Rename section to global.
* Add workstation provision file. Change variables to require true. Only load config file if hosts is not being used.
* Put flags back on Dell so that programs are not removed while configuring files.
* Add provision config read to workstation.
* Go ahead and force config files for hosts. Only affects dev branch until PR. Start making miner and server files.
* Change {{}} to (()) in comments to avoid undefined variable error.
* Attempt to modify existing task groups instead of moving all tasks to one large group.
* Try to use blocks.
* Name blocks and remove redundant calls.
* Do the bare minimum for miner and server so the variables are at least defined.
* Ensure Server and Miner look at their own files.
* Test how block variables are handled.
* Are the variables true Booleans, not strings??
* Change exits to tests so we can see which ones work.
* Add more tests.
* Add the test results.
* Add config_dir for plays to use when making any config files.
* Move provision config dir.
* Add results of test.
* Remove the exit. Fix the blocks' whens.
* Do provision after starting, that way all facts exist.
* Fix all "true"'s.
* Adjust variable checks for provision_config changes.
* Change gui to wrk. Add aliases to cat files.
* Comment entire hosts file.
* Add localhost,
* Try localhost rather than host file group.
* Fix typo in "prov_dir".
* Add newline to end of file.
* Add newline to end of file.
* Add newline to end of file.
* Debug variable. Should be getting set but receiving errors on Fedora.
* Add newline to end of file.
* Fix debug property, var not name.
* Fix show-config. Change show-config-all to only hit active files, not backups.
* Uncomment commented workstation.
* Add commands to edit files.
* Attempt to fix gitlab installer variables.
* Attempt to fix gitlab play variable.
* Replacing `ling` for `{{ user }}`.
* Remove TODO.
* Remove `config_dir` and move provision config back near top.
* `user_root` is not needed, already moved to /usr/local/etc/.
* Add value for running anything at all. This allows user to set up files before first run.
* Reduce the check frequency,
* Ensure files are printed in correct order. Also add a newline between each.
* Only send file if it exists, and then remove it if it sends successfully.
* Always set the destination variables.
* Only run the scp for systems without sshfs. Forgot that system variables were shared between the two, and do not want to scp the files to themselves then delete the files from the mount.
2021-12-05 18:08:51 -06:00
|
|
|
|
|
|
|
|
|
|
|
## Server ##
|
|
|
|
|
|
|
|
- name: General | Account Management | Provisioning Configuration | Server | Create
|
|
|
|
blockinfile:
|
|
|
|
path: "{{ srv_file }}"
|
|
|
|
block: |
|
|
|
|
;;;;;;; Parameters ;;;;;;
|
|
|
|
;
|
|
|
|
; enable : Set to true for system to be considered a server.
|
|
|
|
;
|
|
|
|
; domain : Set to the domain which gives the server its FQDN.
|
|
|
|
; Example: hyperling.com
|
|
|
|
;
|
|
|
|
; onlyoffice : Set to true for this server to be configured as an OnlyOffice server.
|
|
|
|
;
|
|
|
|
; grafana : Set to true for this server to be configured as an Grafana web server.
|
|
|
|
;
|
|
|
|
; influxdb1 : Set to true for this server to be configured as an Influx 1 DB server.
|
|
|
|
;
|
|
|
|
; influxdb2 : Set to true for this server to be configured as an Influx 2 DB + web server.
|
|
|
|
;
|
|
|
|
; certbot : Set to true to add cron job for `certbot renew`.
|
|
|
|
;
|
2022-12-03 15:28:29 -06:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;
|
|
|
|
; Never got these fully working or did not understand how to use them.
|
|
|
|
;
|
Hosts Variable Refactor, User Name Refactor, Metasploit, Brave on Fedora, Aliases (#19)
* Add Brave to Fedora (DNF).
* First attempt to add metasploit installer.
* Fix check for Linux and macOS to use System, not Distro.
* Add more memorable aliases for msfconsole.
* Telegraf is attemping to install doube-time since hosts match both localhost and hostname.
* Add missing pipe.
* Attempt to fix flatpak play no longer being able to find user_ling var. Don't see anything in the dev branch which would have changed this behavior though.
* Add note for future removal.
* Use general gather for all groups. Move user variables to it.
* Feodra Workstation succeeds now! Add newline to end of file.
* First attempt at doing host variables via local files.
* Try using ini as lookup.
* Remove "-" typo.
* Add an initial gather even though it may not have all values properly populated on a machine's first run.
* Fix typo in ignore.
* Try default values.
* Try defaults without quotes.
* Add a section header. Add a default back.
* Rename section to global.
* Add workstation provision file. Change variables to require true. Only load config file if hosts is not being used.
* Put flags back on Dell so that programs are not removed while configuring files.
* Add provision config read to workstation.
* Go ahead and force config files for hosts. Only affects dev branch until PR. Start making miner and server files.
* Change {{}} to (()) in comments to avoid undefined variable error.
* Attempt to modify existing task groups instead of moving all tasks to one large group.
* Try to use blocks.
* Name blocks and remove redundant calls.
* Do the bare minimum for miner and server so the variables are at least defined.
* Ensure Server and Miner look at their own files.
* Test how block variables are handled.
* Are the variables true Booleans, not strings??
* Change exits to tests so we can see which ones work.
* Add more tests.
* Add the test results.
* Add config_dir for plays to use when making any config files.
* Move provision config dir.
* Add results of test.
* Remove the exit. Fix the blocks' whens.
* Do provision after starting, that way all facts exist.
* Fix all "true"'s.
* Adjust variable checks for provision_config changes.
* Change gui to wrk. Add aliases to cat files.
* Comment entire hosts file.
* Add localhost,
* Try localhost rather than host file group.
* Fix typo in "prov_dir".
* Add newline to end of file.
* Add newline to end of file.
* Add newline to end of file.
* Debug variable. Should be getting set but receiving errors on Fedora.
* Add newline to end of file.
* Fix debug property, var not name.
* Fix show-config. Change show-config-all to only hit active files, not backups.
* Uncomment commented workstation.
* Add commands to edit files.
* Attempt to fix gitlab installer variables.
* Attempt to fix gitlab play variable.
* Replacing `ling` for `{{ user }}`.
* Remove TODO.
* Remove `config_dir` and move provision config back near top.
* `user_root` is not needed, already moved to /usr/local/etc/.
* Add value for running anything at all. This allows user to set up files before first run.
* Reduce the check frequency,
* Ensure files are printed in correct order. Also add a newline between each.
* Only send file if it exists, and then remove it if it sends successfully.
* Always set the destination variables.
* Only run the scp for systems without sshfs. Forgot that system variables were shared between the two, and do not want to scp the files to themselves then delete the files from the mount.
2021-12-05 18:08:51 -06:00
|
|
|
; hugo : Set to true to install HUGO static website generator.
|
|
|
|
;
|
2022-12-03 15:28:29 -06:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
Hosts Variable Refactor, User Name Refactor, Metasploit, Brave on Fedora, Aliases (#19)
* Add Brave to Fedora (DNF).
* First attempt to add metasploit installer.
* Fix check for Linux and macOS to use System, not Distro.
* Add more memorable aliases for msfconsole.
* Telegraf is attemping to install doube-time since hosts match both localhost and hostname.
* Add missing pipe.
* Attempt to fix flatpak play no longer being able to find user_ling var. Don't see anything in the dev branch which would have changed this behavior though.
* Add note for future removal.
* Use general gather for all groups. Move user variables to it.
* Feodra Workstation succeeds now! Add newline to end of file.
* First attempt at doing host variables via local files.
* Try using ini as lookup.
* Remove "-" typo.
* Add an initial gather even though it may not have all values properly populated on a machine's first run.
* Fix typo in ignore.
* Try default values.
* Try defaults without quotes.
* Add a section header. Add a default back.
* Rename section to global.
* Add workstation provision file. Change variables to require true. Only load config file if hosts is not being used.
* Put flags back on Dell so that programs are not removed while configuring files.
* Add provision config read to workstation.
* Go ahead and force config files for hosts. Only affects dev branch until PR. Start making miner and server files.
* Change {{}} to (()) in comments to avoid undefined variable error.
* Attempt to modify existing task groups instead of moving all tasks to one large group.
* Try to use blocks.
* Name blocks and remove redundant calls.
* Do the bare minimum for miner and server so the variables are at least defined.
* Ensure Server and Miner look at their own files.
* Test how block variables are handled.
* Are the variables true Booleans, not strings??
* Change exits to tests so we can see which ones work.
* Add more tests.
* Add the test results.
* Add config_dir for plays to use when making any config files.
* Move provision config dir.
* Add results of test.
* Remove the exit. Fix the blocks' whens.
* Do provision after starting, that way all facts exist.
* Fix all "true"'s.
* Adjust variable checks for provision_config changes.
* Change gui to wrk. Add aliases to cat files.
* Comment entire hosts file.
* Add localhost,
* Try localhost rather than host file group.
* Fix typo in "prov_dir".
* Add newline to end of file.
* Add newline to end of file.
* Add newline to end of file.
* Debug variable. Should be getting set but receiving errors on Fedora.
* Add newline to end of file.
* Fix debug property, var not name.
* Fix show-config. Change show-config-all to only hit active files, not backups.
* Uncomment commented workstation.
* Add commands to edit files.
* Attempt to fix gitlab installer variables.
* Attempt to fix gitlab play variable.
* Replacing `ling` for `{{ user }}`.
* Remove TODO.
* Remove `config_dir` and move provision config back near top.
* `user_root` is not needed, already moved to /usr/local/etc/.
* Add value for running anything at all. This allows user to set up files before first run.
* Reduce the check frequency,
* Ensure files are printed in correct order. Also add a newline between each.
* Only send file if it exists, and then remove it if it sends successfully.
* Always set the destination variables.
* Only run the scp for systems without sshfs. Forgot that system variables were shared between the two, and do not want to scp the files to themselves then delete the files from the mount.
2021-12-05 18:08:51 -06:00
|
|
|
[global]
|
|
|
|
marker: '; {mark} MANAGED BY ANSIBLE | Server Config'
|
|
|
|
state: present
|
|
|
|
create: yes
|
|
|
|
backup: yes
|
|
|
|
|
|
|
|
- name: General | Account Management | Provisioning Configuration | Server | Load
|
|
|
|
set_fact:
|
|
|
|
server: "{{ lookup('ini', 'enable file={{srv_file}} default=false') }}"
|
|
|
|
domain: "{{ lookup('ini', 'domain file={{srv_file}} default=hyperling.com') }}"
|
|
|
|
onlyoffice: "{{ lookup('ini', 'onlyoffice file={{srv_file}} default=false') }}"
|
|
|
|
grafana: "{{ lookup('ini', 'grafana file={{srv_file}} default=false') }}"
|
|
|
|
influxdb1: "{{ lookup('ini', 'influxdb1 file={{srv_file}} default=false') }}"
|
|
|
|
influxdb2: "{{ lookup('ini', 'influxdb2 file={{srv_file}} default=false') }}"
|
|
|
|
certbot: "{{ lookup('ini', 'certbot file={{srv_file}} default=false') }}"
|
|
|
|
hugo: "{{ lookup('ini', 'hugo file={{srv_file}} default=false') }}"
|
|
|
|
|
2021-12-24 14:55:21 -06:00
|
|
|
- name: General | Account Management | Provisioning Configuration | Server | List
|
General Enhancements, NixOS Support (#47)
* Begin adding Nix.
* Install LBRY from Nix since its Flatpak is no longer supported..
* Got the global install to work, now just figuring out why LBRY won't work.
* Add alias to blow away dev branch and start back up from remote or main.
* Nix install not really working, requires manual intervention, maybe add to setup.sh or just try NixOS and see if it can 'replace' this entire Ansible project and cease the use of multiple operating systems.
* Start working on having a path for NixOS.
* Add NixOS.
* Skip the installer portion if using NixOS.
* Start including more tasks. ALl work besides GNOME due to psutil, even though it is included in configuration.nix.
* This should have never been added. Was an accident if it snuck though.
* Test using env rather than hard-coded bash path.
* Use variables, start thinking about future.
* Add file to manage setting up NixOS for the first or any subsequent times.
* Use the new nixos.sh script.
* Ensure /usr/local/bin is in PATH.
* Do not use * inside of "" for ls.
* Add filename cleanup shortcut.
* Add a clean option as well as a few bugfixes and checking that convert is installed.
* Use underscores in filenames and remove plurality.
* Bring the file into better column compliance.
* Stop running the dconf psutil failures against NixOS for now.
* Ensure the old names of scripts are removed from bin.
* Clean filename fixes as well as a traversing version.
* Remove extra spacing.
* Begin adding swapfile creation.
* Add dangerous code reset command.
* Add some cleaning for NixOS package manager.
* The ~ was being taken literally and created as a new folder.
* More work on swap files, and a new ansible.nix file.
* Fix the swap confuration line.
* Finish the swap configuration by checking if it already exists. Always keep the fstab line in existence.
* Reorder and enhance the update function for NixOS.
* Add comment.
* Start working on dconf for NixOS since don't have home-manager working yet in configration.nix.
* Add notes.
* If the file was created, make sure the user owns it and can edit by default.
* Favorites are working and only need maintained in one place! :)
* Add .zshrc for GNOME settings on NixOS.
* Add most other settings that are done manually post-install. Report any failures with their placement.
* FINALLY! Keyboard shortcuts and some final Gnome Tweak settings!
* Add night light settings.
* Move around some comments.
* Pull first then deal with any merge issues, rather than trying to push when there are things to pull.
* Test removing the dconf commands for non-NixOS.
* Alter output; remove extra newlines and add cache verbosity.
* dconf in rc files is working on Ubuntu!
* Add delete. Fix filename quotes. Other enhancements.
* Create new folder chain if clean changed directory names.
* Add TBD about changing the directory structure.
* Only say success if the file really exists. Skip if conversion fails.
* Only say success if the file really exists. Skip if conversion fails.
* Add quotes around dirname.
* Add quotes around the entire directory tree.
* Add quotes to comment in case it ever gets used.
* Add a bittorrent client.
* Disable Bluetooth on all devices, it's normally off anyways.
* Fix comments, this enables not disables.
* Create new services report.
* Add services report to main area and move all reports to NixOS area.
* Fix swap file variable name for non-NixOS distros.
* Add godot editor.
* Re-add extra programs Geary and OpenShot for variety.
* Shorten the output for 80 char terminals.
* Add Code-OSS for when Codium is having issues.
* Allow code-oss to be installed.
* Add the full desktop entry for Code-OSS.
* Ansible handles the newlines, prevent the -e from getting into the file.
* Enhance newlines in nmap report.
* Add NixOS.
2023-10-17 04:30:36 -07:00
|
|
|
set_fact:
|
2021-12-24 14:55:21 -06:00
|
|
|
provision_variables: "{{ provision_variables | combine(item) }}"
|
Hosts Variable Refactor, User Name Refactor, Metasploit, Brave on Fedora, Aliases (#19)
* Add Brave to Fedora (DNF).
* First attempt to add metasploit installer.
* Fix check for Linux and macOS to use System, not Distro.
* Add more memorable aliases for msfconsole.
* Telegraf is attemping to install doube-time since hosts match both localhost and hostname.
* Add missing pipe.
* Attempt to fix flatpak play no longer being able to find user_ling var. Don't see anything in the dev branch which would have changed this behavior though.
* Add note for future removal.
* Use general gather for all groups. Move user variables to it.
* Feodra Workstation succeeds now! Add newline to end of file.
* First attempt at doing host variables via local files.
* Try using ini as lookup.
* Remove "-" typo.
* Add an initial gather even though it may not have all values properly populated on a machine's first run.
* Fix typo in ignore.
* Try default values.
* Try defaults without quotes.
* Add a section header. Add a default back.
* Rename section to global.
* Add workstation provision file. Change variables to require true. Only load config file if hosts is not being used.
* Put flags back on Dell so that programs are not removed while configuring files.
* Add provision config read to workstation.
* Go ahead and force config files for hosts. Only affects dev branch until PR. Start making miner and server files.
* Change {{}} to (()) in comments to avoid undefined variable error.
* Attempt to modify existing task groups instead of moving all tasks to one large group.
* Try to use blocks.
* Name blocks and remove redundant calls.
* Do the bare minimum for miner and server so the variables are at least defined.
* Ensure Server and Miner look at their own files.
* Test how block variables are handled.
* Are the variables true Booleans, not strings??
* Change exits to tests so we can see which ones work.
* Add more tests.
* Add the test results.
* Add config_dir for plays to use when making any config files.
* Move provision config dir.
* Add results of test.
* Remove the exit. Fix the blocks' whens.
* Do provision after starting, that way all facts exist.
* Fix all "true"'s.
* Adjust variable checks for provision_config changes.
* Change gui to wrk. Add aliases to cat files.
* Comment entire hosts file.
* Add localhost,
* Try localhost rather than host file group.
* Fix typo in "prov_dir".
* Add newline to end of file.
* Add newline to end of file.
* Add newline to end of file.
* Debug variable. Should be getting set but receiving errors on Fedora.
* Add newline to end of file.
* Fix debug property, var not name.
* Fix show-config. Change show-config-all to only hit active files, not backups.
* Uncomment commented workstation.
* Add commands to edit files.
* Attempt to fix gitlab installer variables.
* Attempt to fix gitlab play variable.
* Replacing `ling` for `{{ user }}`.
* Remove TODO.
* Remove `config_dir` and move provision config back near top.
* `user_root` is not needed, already moved to /usr/local/etc/.
* Add value for running anything at all. This allows user to set up files before first run.
* Reduce the check frequency,
* Ensure files are printed in correct order. Also add a newline between each.
* Only send file if it exists, and then remove it if it sends successfully.
* Always set the destination variables.
* Only run the scp for systems without sshfs. Forgot that system variables were shared between the two, and do not want to scp the files to themselves then delete the files from the mount.
2021-12-05 18:08:51 -06:00
|
|
|
loop:
|
2021-12-24 14:55:21 -06:00
|
|
|
- { 'server': "{{ server }}" }
|
|
|
|
- { 'domain': "{{ domain }}" }
|
|
|
|
- { 'onlyoffice': "{{ onlyoffice }}" }
|
|
|
|
- { 'grafana': "{{ grafana }}" }
|
|
|
|
- { 'influxdb1': "{{ influxdb1 }}" }
|
|
|
|
- { 'influxdb2': "{{ influxdb2 }}" }
|
|
|
|
- { 'certbot': "{{ certbot }}" }
|
|
|
|
- { 'hugo': "{{ hugo }}" }
|
Hosts Variable Refactor, User Name Refactor, Metasploit, Brave on Fedora, Aliases (#19)
* Add Brave to Fedora (DNF).
* First attempt to add metasploit installer.
* Fix check for Linux and macOS to use System, not Distro.
* Add more memorable aliases for msfconsole.
* Telegraf is attemping to install doube-time since hosts match both localhost and hostname.
* Add missing pipe.
* Attempt to fix flatpak play no longer being able to find user_ling var. Don't see anything in the dev branch which would have changed this behavior though.
* Add note for future removal.
* Use general gather for all groups. Move user variables to it.
* Feodra Workstation succeeds now! Add newline to end of file.
* First attempt at doing host variables via local files.
* Try using ini as lookup.
* Remove "-" typo.
* Add an initial gather even though it may not have all values properly populated on a machine's first run.
* Fix typo in ignore.
* Try default values.
* Try defaults without quotes.
* Add a section header. Add a default back.
* Rename section to global.
* Add workstation provision file. Change variables to require true. Only load config file if hosts is not being used.
* Put flags back on Dell so that programs are not removed while configuring files.
* Add provision config read to workstation.
* Go ahead and force config files for hosts. Only affects dev branch until PR. Start making miner and server files.
* Change {{}} to (()) in comments to avoid undefined variable error.
* Attempt to modify existing task groups instead of moving all tasks to one large group.
* Try to use blocks.
* Name blocks and remove redundant calls.
* Do the bare minimum for miner and server so the variables are at least defined.
* Ensure Server and Miner look at their own files.
* Test how block variables are handled.
* Are the variables true Booleans, not strings??
* Change exits to tests so we can see which ones work.
* Add more tests.
* Add the test results.
* Add config_dir for plays to use when making any config files.
* Move provision config dir.
* Add results of test.
* Remove the exit. Fix the blocks' whens.
* Do provision after starting, that way all facts exist.
* Fix all "true"'s.
* Adjust variable checks for provision_config changes.
* Change gui to wrk. Add aliases to cat files.
* Comment entire hosts file.
* Add localhost,
* Try localhost rather than host file group.
* Fix typo in "prov_dir".
* Add newline to end of file.
* Add newline to end of file.
* Add newline to end of file.
* Debug variable. Should be getting set but receiving errors on Fedora.
* Add newline to end of file.
* Fix debug property, var not name.
* Fix show-config. Change show-config-all to only hit active files, not backups.
* Uncomment commented workstation.
* Add commands to edit files.
* Attempt to fix gitlab installer variables.
* Attempt to fix gitlab play variable.
* Replacing `ling` for `{{ user }}`.
* Remove TODO.
* Remove `config_dir` and move provision config back near top.
* `user_root` is not needed, already moved to /usr/local/etc/.
* Add value for running anything at all. This allows user to set up files before first run.
* Reduce the check frequency,
* Ensure files are printed in correct order. Also add a newline between each.
* Only send file if it exists, and then remove it if it sends successfully.
* Always set the destination variables.
* Only run the scp for systems without sshfs. Forgot that system variables were shared between the two, and do not want to scp the files to themselves then delete the files from the mount.
2021-12-05 18:08:51 -06:00
|
|
|
|
|
|
|
|
|
|
|
## Exit if not turned on yet ##
|
|
|
|
|
|
|
|
- name: General | Account Management | Provisioning Configuration | Exit Check
|
|
|
|
shell: echo "Please configure the config files in {{ prov_dir }} then try again." && exit 1
|
|
|
|
when: provision != true
|
2021-12-24 14:55:21 -06:00
|
|
|
|
|
|
|
|
|
|
|
## Display values ##
|
|
|
|
|
|
|
|
- name: General | Account Management | Provisioning Configuration | Print
|
General Enhancements, NixOS Support (#47)
* Begin adding Nix.
* Install LBRY from Nix since its Flatpak is no longer supported..
* Got the global install to work, now just figuring out why LBRY won't work.
* Add alias to blow away dev branch and start back up from remote or main.
* Nix install not really working, requires manual intervention, maybe add to setup.sh or just try NixOS and see if it can 'replace' this entire Ansible project and cease the use of multiple operating systems.
* Start working on having a path for NixOS.
* Add NixOS.
* Skip the installer portion if using NixOS.
* Start including more tasks. ALl work besides GNOME due to psutil, even though it is included in configuration.nix.
* This should have never been added. Was an accident if it snuck though.
* Test using env rather than hard-coded bash path.
* Use variables, start thinking about future.
* Add file to manage setting up NixOS for the first or any subsequent times.
* Use the new nixos.sh script.
* Ensure /usr/local/bin is in PATH.
* Do not use * inside of "" for ls.
* Add filename cleanup shortcut.
* Add a clean option as well as a few bugfixes and checking that convert is installed.
* Use underscores in filenames and remove plurality.
* Bring the file into better column compliance.
* Stop running the dconf psutil failures against NixOS for now.
* Ensure the old names of scripts are removed from bin.
* Clean filename fixes as well as a traversing version.
* Remove extra spacing.
* Begin adding swapfile creation.
* Add dangerous code reset command.
* Add some cleaning for NixOS package manager.
* The ~ was being taken literally and created as a new folder.
* More work on swap files, and a new ansible.nix file.
* Fix the swap confuration line.
* Finish the swap configuration by checking if it already exists. Always keep the fstab line in existence.
* Reorder and enhance the update function for NixOS.
* Add comment.
* Start working on dconf for NixOS since don't have home-manager working yet in configration.nix.
* Add notes.
* If the file was created, make sure the user owns it and can edit by default.
* Favorites are working and only need maintained in one place! :)
* Add .zshrc for GNOME settings on NixOS.
* Add most other settings that are done manually post-install. Report any failures with their placement.
* FINALLY! Keyboard shortcuts and some final Gnome Tweak settings!
* Add night light settings.
* Move around some comments.
* Pull first then deal with any merge issues, rather than trying to push when there are things to pull.
* Test removing the dconf commands for non-NixOS.
* Alter output; remove extra newlines and add cache verbosity.
* dconf in rc files is working on Ubuntu!
* Add delete. Fix filename quotes. Other enhancements.
* Create new folder chain if clean changed directory names.
* Add TBD about changing the directory structure.
* Only say success if the file really exists. Skip if conversion fails.
* Only say success if the file really exists. Skip if conversion fails.
* Add quotes around dirname.
* Add quotes around the entire directory tree.
* Add quotes to comment in case it ever gets used.
* Add a bittorrent client.
* Disable Bluetooth on all devices, it's normally off anyways.
* Fix comments, this enables not disables.
* Create new services report.
* Add services report to main area and move all reports to NixOS area.
* Fix swap file variable name for non-NixOS distros.
* Add godot editor.
* Re-add extra programs Geary and OpenShot for variety.
* Shorten the output for 80 char terminals.
* Add Code-OSS for when Codium is having issues.
* Allow code-oss to be installed.
* Add the full desktop entry for Code-OSS.
* Ansible handles the newlines, prevent the -e from getting into the file.
* Enhance newlines in nmap report.
* Add NixOS.
2023-10-17 04:30:36 -07:00
|
|
|
debug:
|
2021-12-24 14:55:21 -06:00
|
|
|
var: provision_variables
|