43 Commits

Author SHA1 Message Date
8e4247fd58
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
c59e706c17
Add initial HUGO support, FreeBSD 13 support, and script for Ansible to hit dev branch. (#4)
* Create HUGO file.

* Add HUGO.

* Add script for running system against development branch.

* Add newline to end of file.

* Comment unused blocks.

* Add path of site that HUGO should host.

* Newlines, comments, and HUGO path. (#2) (#3)

* Create HUGO file.

* Add HUGO.

* Add script for running system against development branch.

* Add newline to end of file.

* Comment unused blocks.

* Add path of site that HUGO should host.

* FreeBSD is complaining about certbot not having dict object stdout. This whole playbook is supposed to be skipped though, lol.

* FreeBSD 13 is still mad. Ansible 2.11.2, jinja 2.11.2 (same version number??), Python 3.8.10.

* Fix root group to be existing variable. FreeBSD uses wheel.

* Allow choosing Github branch dynamically.

* `branch` needs to be at General level. Testing if this works...

* Change other `localhost` to `everything`.

* Update FreeBSD status.

* Goodbye, Code-OSS on Linux!

* Delete a terrible file.

* Remove excess tag.

* "Fix" SSHFS for FreeBSD.

* Variablize FreeBSD's loading of fusefs.

* Variablize /etc/rc.conf. Enable FuseFS more properly.

* Add beginning ticks.

* Add missing playbook.

* Enable FreeBSD mount job.

* Rearrange items to be more consistent with comment.

* It seems  FreeBSD removed the `gnome3` metapackage. Use `gnome3-lite` instead. Also add Telegram.

* Python is to 3.8 now.

* Expand on FreeBSD work.

* Expand on FreeBSD work.

* Add placeholders for Gitlab.

* Add parameter for Gitlab install.

* Add Gitlab playbook.

* Ensure FreeBSD uses the correct Python install.

* Add newline.

* Fix NFS for FreeBSD workstations.

* Remove unnecessary line, restricted install to Linux in playbook.

* Fix mount options for FreeBSD.

* Fix mount number, as well as system-specific facts.

* Add placeholders for remote viewing.

* Add RDP for FreeBSD.

* Omg! It works! Add setting enforcement.

* Always remove OSS.

* Remove hosts from explicit dev testing.
2021-07-19 07:07:03 -05:00
ae8f157d78 Never skip test to ensure failed key always exists. 2021-02-13 06:06:33 -06:00
656461169a Debug showed that even though job was being skipped it was still doing the register, that's why things were being dumb. 2021-02-13 06:01:45 -06:00
226be654cc Remove old parenthesis. 2021-02-13 05:46:51 -06:00
42f677c476 Fix name to key. 2021-02-13 05:45:21 -06:00
47157323ca Try a better looking format. 2021-02-13 05:44:03 -06:00
253d19297f Add quotes to JSON attributes. 2021-02-13 05:43:14 -06:00
ecb7871c2b Fix loop item value. 2021-02-13 05:42:13 -06:00
ed521ea558 Make super sure the failed key exists. 2021-02-13 05:40:46 -06:00
c5912f5ca3 Treat failed not existing as a success. 2021-02-13 05:31:12 -06:00
9488e87421 Remove TODOs, should be gone on all systems by now. 2021-02-13 05:28:16 -06:00
b2941fa580 Ubuntu on desktop is madbro about failed not existing. Worked fine on USB earlier? 2021-02-12 07:19:27 -06:00
3676f2dc07 Fix wonky SSHFS fstab logic. 2021-02-11 12:22:42 -06:00
bdb161376b Don't remove fstab entry if test double mounts. 2021-02-11 12:18:22 -06:00
0a87fcf4d9 Refresh variable of whether 1337 is mounted. 2021-02-11 10:59:42 -06:00
d1d11369c9 FreeBSD does not support nonempty. 2021-02-07 15:19:33 -06:00
2eb64ac9d2 Do test on a different folder. Prevents non-sshfs devices from even having /mnt/leet created. 2021-02-07 12:53:10 -06:00
1895e422b3 Remove debug. 2021-02-07 09:05:57 -06:00
d0d6cb33d6 Missed an absent. 2021-02-07 08:12:17 -06:00
e385014216 Use test result. 2021-02-07 08:11:28 -06:00
79f0ec27aa Add debug. 2021-02-07 08:08:43 -06:00
25cde884aa Need to get variable populated even if command fails. 2021-02-07 08:07:49 -06:00
682377a503 Test SSHFS so that bad FSTAB entries don't get created on Linux when they'll break. 2021-02-07 08:03:13 -06:00
ebe579a205 Variablize ssh. Make non-sshfs report cron job a loop. 2021-02-07 07:26:54 -06:00
a8714aea01 Fix 1337 mount. 2021-02-07 04:53:50 -06:00
62aefb0ffb Dangit, cancelled the ansible-pull job again. Also fix root cron being done twice. 2021-02-06 07:49:11 -06:00
4ffc25c804 Save reports and heartbeat to 1337 drive. Fix some fact names. 2021-02-06 07:16:19 -06:00
f46d2495f2 More 1337 share work. 2021-02-06 07:00:47 -06:00
638ee2a746 Fix mounting 1337 on FreeBSD. Adjust flatpak commands to use firefox-esr. 2021-02-06 06:48:59 -06:00
86e1881090 General FreeBSD and account improvements. 2021-02-03 21:17:48 -06:00
95024e6400 Use double equal. Work has me so spoiled. 2021-02-03 12:52:08 -06:00
9137f6b762 Exclude FreeBSD for now. 2021-02-03 12:50:29 -06:00
1a4a176933 Reorganization including fixing blockinfile being used multiple times on the same file causing entries to get overwritten. 2021-02-03 07:36:51 -06:00
2951b687ae Better names. :) 2021-02-02 21:28:17 -06:00
b221478f35 Add args. 2021-02-02 21:12:44 -06:00
842cb686bc Indent warn. 2021-02-02 21:10:56 -06:00
d28cdd5d53 Do not warn on mount all. Mount module not sufficient. 2021-02-02 21:09:18 -06:00
4661e114eb Do not force new key (not supported in FreeBSD 11). Add mount to mount. 2021-02-02 21:00:06 -06:00
64c7593ce3 Use file for creating the 1337 mount. 2021-02-01 08:17:50 -06:00
111e1e2888 Better names. 2021-02-01 07:58:00 -06:00
1e453e8df4 Shell is prompting just fine on its own, no need for variable. Make sure leet folder exists. 2021-02-01 07:56:00 -06:00
af1eee5f03 More organization and beginning to add 1337 share. 2021-02-01 05:03:27 -06:00