113 Commits

Author SHA1 Message Date
396f6cd711 Partition FreeBSD cron jobs. Add security update. 2021-02-06 11:02:29 -06:00
6e12534299 Fix ansible sudoer permissions. 2021-02-06 09:42:47 -06:00
04e2a23919 New report for knowing when system last pulled repo. 2021-02-06 08:08:32 -06:00
e24487aabb Add nmap test. 2021-02-03 21:29:45 -06:00
0495703f16 Back to true/false on flatpak fact. 2021-02-03 21:21:48 -06:00
86e1881090 General FreeBSD and account improvements. 2021-02-03 21:17:48 -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
4caa361aeb Change to definitely use a string value. 2021-02-02 21:44:56 -06:00
4554a96315 Change true to be literal. Hopefully does not get mistaken for variable name. 2021-02-02 21:42:04 -06:00
38ed8d0eb0 Debugging flatpak_distro fact. 2021-02-02 21:40:46 -06:00
d66624b8a2 Fix path to lynis. Better comments. 2021-02-02 21:34:08 -06:00
bb242098db Fix dash in variable name. Update hosts file. Better names in local. 2021-02-02 21:31:45 -06:00
6f2361832a Use bash_exec fact for more. 2021-02-02 21:05:46 -06:00
b6868cbd24 Seeing if defining the variable with no value is OK. ALso some specialization of the workstation facts. 2021-02-02 20:27:15 -06:00
2cef5e7921 When setting facts for localhost, does not set facts for other host patterns. Testing breakout of workstation facts. 2021-02-01 08:28:12 -06:00
f7ac16c699 Opposite attempt of the previous, use localhost instead of all. 2021-02-01 08:20:03 -06:00
ddac6d8f44 Only specify all, not localhost, in an attempt to only run things once (hopefully fixes apt locks). 2021-02-01 08:19:11 -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
e2921ea6d7 Remove when. I wish I could only ask conditionally. 2021-02-01 07:30:47 -06:00
251b2acc37 Moving vars_prompt and testing if it accepts when clause. 2021-02-01 07:29:59 -06:00
edf6f0d63c ignore_errors got left behind on the wrong import! ;D 2021-02-01 06:55:03 -06:00
e3b5d6b915 Add pkg refresh for FreeBSD. Create SSH key with shell instead of fancy module. Still looking into how to (safely) get newer ansible on Debian. 2021-02-01 06:52:28 -06:00
d17ef1afbd Comment out keys import so I can test Debian. 2021-02-01 05:51:00 -06:00
250202a897 Debian still mad, moving when to import. 2021-02-01 05:49:00 -06:00
af1eee5f03 More organization and beginning to add 1337 share. 2021-02-01 05:03:27 -06:00
834800df8c I guess facts are only strings, not booleans. Or I need to learn more. 2021-02-01 03:52:26 -06:00
0f0f9a3aeb Good ol' organization. Tasks folder started getting too busy, and still kind of is. 2021-01-31 18:02:37 -06:00
47be3301e1 Add superuser, sudo group, and sudo group sudoers file. 2021-01-31 17:46:59 -06:00
8a91b2ad6e Go back to include instead of include_tasks so that ignoring CUPS error still works. 2021-01-31 17:15:37 -06:00
a8af6f76f7 Changing include to include_tasks seems to help Debian. Change all instances in file for final test. 2021-01-31 16:54:59 -06:00
5b179ffc0d Testing change for Debian. It is upset that it is not finding tasks. It is on ansible 2.7.7 where Ubuntu is 2.9.9 and FreeBSD is 2.9.7. "ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path." 2021-01-31 16:53:19 -06:00
d1756ea20e Fix "conditional statements should not include jinja2 templating". Test breaking the cfg file to see if it is even being used. 2021-01-31 15:58:21 -06:00
5c47f396ec Starting to test Ubuntu Server. Need to find a way to get it working without putting it in the hosts file. 2021-01-31 15:38:46 -06:00
9395e309a5 Refactoring fact files. 2021-01-31 14:44:57 -06:00
c1ac4c3af4 Update comments. 2021-01-31 14:30:08 -06:00
acdff063e8 Move when's back to include's. 2021-01-31 14:25:54 -06:00
cb126dcc0b Split UI into Linux vs FreeBSD to avoid "local.yml, line 25, column 3, found a duplicate dict key
(tasks). Using last defined value only."
2021-01-31 14:24:09 -06:00
59e3dc7947 Service module complained about ignore_errors. Trying it on the include. 2021-01-31 13:19:35 -06:00
319a717e68 Adjust for FreeBSD root group being wheel. 2021-01-31 13:11:40 -06:00
81d59aabb3 Fix when spacing. 2021-01-31 13:04:26 -06:00
537a0f59ca FreeBSD and QoL changes. 2021-01-31 12:58:37 -06:00
Hyperling
8a2a7ec94c Try adding all IP ranges to inventory. 2020-12-31 18:07:49 -06:00
Hyperling
b1d54058df Try without the hosts keyword? 2020-12-31 18:01:51 -06:00
Hyperling
5de330d8c0 Try both all and localhost. 2020-12-31 18:00:53 -06:00
Hyperling
f2ac8883e1 Add connection type local. Localhost wasn't enough for FreeBSD. 2020-12-31 17:52:45 -06:00
Hyperling
d20539437c Change first task list to localhost so it runs for systems outside of hosts/inventory. 2020-12-31 17:50:51 -06:00
Hyperling
de7b2ea00c Debug looks terrible. Put it in a file and hope that the color codes are ignored. 2020-12-28 21:32:28 -06:00
Hyperling
15a9bd392f End script with a Lynis hardness check. 2020-12-28 20:57:05 -06:00
Hyperling
021730c90c Set facts is working! Now do the same for service names. 2020-12-28 20:21:01 -06:00
Hyperling
8eede3226b Try to use set_fact for package names. 2020-12-28 20:06:41 -06:00