Commit Graph

  • 2d9975eb5c Remove old test workstation. Hyperling 2021-02-06 09:49:19 -06:00
  • 6e12534299 Fix ansible sudoer permissions. Hyperling 2021-02-06 09:42:47 -06:00
  • 9d4505f127 Fix path. Hyperling 2021-02-06 09:27:08 -06:00
  • 3b8a41d761 Fix debug.var property. Hyperling 2021-02-06 09:20:42 -06:00
  • 37773c57c3 Fix quotes. Hyperling 2021-02-06 09:19:31 -06:00
  • 1a43936c6b Provide method for non-SSHFS machines to report. Hyperling 2021-02-06 09:18:23 -06:00
  • cbb567cbf2 Debian is upset again. Try adding localhost to inventory. Hyperling 2021-02-06 08:22:57 -06:00
  • 16b966b52c Change names. Add explicit present to sudo group. Hyperling 2021-02-06 08:16:31 -06:00
  • 8087db0400 Update names, add chmod. Hyperling 2021-02-06 08:11:33 -06:00
  • 04e2a23919 New report for knowing when system last pulled repo. Hyperling 2021-02-06 08:08:32 -06:00
  • 62aefb0ffb Dangit, cancelled the ansible-pull job again. Also fix root cron being done twice. Hyperling 2021-02-06 07:49:11 -06:00
  • fc3953ae29 Adjust report permissions. Hyperling 2021-02-06 07:37:31 -06:00
  • 5030ebfbdf Try running in bash to clean up weird characters. Hyperling 2021-02-06 07:27:57 -06:00
  • c1abb33688 Use variable in all commands. Hyperling 2021-02-06 07:19:58 -06:00
  • 4ffc25c804 Save reports and heartbeat to 1337 drive. Fix some fact names. Hyperling 2021-02-06 07:16:19 -06:00
  • f46d2495f2 More 1337 share work. Hyperling 2021-02-06 07:00:47 -06:00
  • 638ee2a746 Fix mounting 1337 on FreeBSD. Adjust flatpak commands to use firefox-esr. Hyperling 2021-02-06 06:48:59 -06:00
  • 34d8684840 Remove junk from nmap results. Hyperling 2021-02-03 21:39:24 -06:00
  • 3edada0912 Fix ansible cron (again). Hyperling 2021-02-03 21:32:03 -06:00
  • e24487aabb Add nmap test. Hyperling 2021-02-03 21:29:45 -06:00
  • 0495703f16 Back to true/false on flatpak fact. Hyperling 2021-02-03 21:21:48 -06:00
  • 86e1881090 General FreeBSD and account improvements. Hyperling 2021-02-03 21:17:48 -06:00
  • 95024e6400 Use double equal. Work has me so spoiled. Hyperling 2021-02-03 12:52:08 -06:00
  • 9137f6b762 Exclude FreeBSD for now. Hyperling 2021-02-03 12:50:29 -06:00
  • 01b0fb21df Add nmap. Hyperling 2021-02-03 12:44:06 -06:00
  • ee8733c862 Sudo needs to be installed. Move it out of the disabled updates section. Hyperling 2021-02-03 12:38:42 -06:00
  • de1c43e7d9 Start moving back to blocks, easier to manage comments. Hyperling 2021-02-03 08:03:12 -06:00
  • 1a4a176933 Reorganization including fixing blockinfile being used multiple times on the same file causing entries to get overwritten. Hyperling 2021-02-03 07:36:51 -06:00
  • 51766c8db6 Remove debug. Still not sure why true/false does not work but oh well. Hyperling 2021-02-02 21:46:40 -06:00
  • 4caa361aeb Change to definitely use a string value. Hyperling 2021-02-02 21:44:56 -06:00
  • 4554a96315 Change true to be literal. Hopefully does not get mistaken for variable name. Hyperling 2021-02-02 21:42:04 -06:00
  • 38ed8d0eb0 Debugging flatpak_distro fact. Hyperling 2021-02-02 21:40:46 -06:00
  • d66624b8a2 Fix path to lynis. Better comments. Hyperling 2021-02-02 21:34:08 -06:00
  • bb242098db Fix dash in variable name. Update hosts file. Better names in local. Hyperling 2021-02-02 21:31:45 -06:00
  • 2951b687ae Better names. :) Hyperling 2021-02-02 21:28:17 -06:00
  • b221478f35 Add args. Hyperling 2021-02-02 21:12:44 -06:00
  • 842cb686bc Indent warn. Hyperling 2021-02-02 21:10:56 -06:00
  • d28cdd5d53 Do not warn on mount all. Mount module not sufficient. Hyperling 2021-02-02 21:09:18 -06:00
  • 6f2361832a Use bash_exec fact for more. Hyperling 2021-02-02 21:05:46 -06:00
  • 4661e114eb Do not force new key (not supported in FreeBSD 11). Add mount to mount. Hyperling 2021-02-02 21:00:06 -06:00
  • fddb6e4b96 Only use the output. Hyperling 2021-02-02 20:55:06 -06:00
  • f9eeccb3e7 Use variable for bash location. Different on FreeBSD 11 (userspace) vs 12 (system)? Hyperling 2021-02-02 20:51:28 -06:00
  • 6633e62c77 Split package facts between CLI and UI. Hyperling 2021-02-02 20:44:31 -06:00
  • 14df956852 Provide dummy package name for locate on FreeBSD. Hyperling 2021-02-02 20:31:17 -06:00
  • 49d561dd64 Trying without quotes. Hyperling 2021-02-02 20:29:14 -06:00
  • b6868cbd24 Seeing if defining the variable with no value is OK. ALso some specialization of the workstation facts. Hyperling 2021-02-02 20:27:15 -06:00
  • 668fd67fd0 Make locate package a variable. Does not need installed on FreeBSD so checking if blank is OK. Hyperling 2021-02-02 20:22:36 -06:00
  • 2cef5e7921 When setting facts for localhost, does not set facts for other host patterns. Testing breakout of workstation facts. Hyperling 2021-02-01 08:28:12 -06:00
  • f7ac16c699 Opposite attempt of the previous, use localhost instead of all. Hyperling 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). Hyperling 2021-02-01 08:19:11 -06:00
  • 64c7593ce3 Use file for creating the 1337 mount. Hyperling 2021-02-01 08:17:50 -06:00
  • e5684df2db Squash python warning. Use future option rather than legacy. Hyperling 2021-02-01 08:12:41 -06:00
  • 9ad77ec639 Reformat. Hyperling 2021-02-01 08:09:54 -06:00
  • 111e1e2888 Better names. Hyperling 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. Hyperling 2021-02-01 07:56:00 -06:00
  • e2921ea6d7 Remove when. I wish I could only ask conditionally. Hyperling 2021-02-01 07:30:47 -06:00
  • 251b2acc37 Moving vars_prompt and testing if it accepts when clause. Hyperling 2021-02-01 07:29:59 -06:00
  • 59e2789df0 Ask for password then pass it to the ssh-copy-id. Hoping prompt does not need moved to local.yml. Hyperling 2021-02-01 07:26:54 -06:00
  • 24c61eb220 /bin/bash fixed redirect. Looks like ssh-copy-id is asking for password due to /bin/sh, use bash for it as well. Hyperling 2021-02-01 07:19:51 -06:00
  • 9f69fcf4c1 Add args on tests. Hyperling 2021-02-01 07:16:17 -06:00
  • 7bdfed742b Make quotes happy. Hyperling 2021-02-01 07:14:03 -06:00
  • 51b17411e8 It would be hard to try multiple ways if any but the last failed. :P Hyperling 2021-02-01 07:05:19 -06:00
  • 827e089300 Trying multiple ways of possibly fixing keygen error. Also disabled updating packages for now, could be unsafe if a broken update came out since machines would fall off scm. Hyperling 2021-02-01 07:04:41 -06:00
  • 20e785aaeb Add quotes to command and prepare for need to ignore_errors. Hyperling 2021-02-01 06:57:11 -06:00
  • edf6f0d63c ignore_errors got left behind on the wrong import! ;D Hyperling 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. Hyperling 2021-02-01 06:52:28 -06:00
  • a68bafd338 Better and more consistent names. Hyperling 2021-02-01 06:43:32 -06:00
  • b1471edf52 Add some packages that should be kept up to date. Hopefully Debian gets to 2.8 sometime soon. May need to use a more bleeding edge repo if not. Hyperling 2021-02-01 06:40:23 -06:00
  • c7b0c4f265 Remove tests, start using ansible_pkg_mgr. :D Hyperling 2021-02-01 06:36:00 -06:00
  • 3e78c363c7 Change family test to only be for Debian. Hyperling 2021-02-01 06:09:08 -06:00
  • 3a20a1c08f = to == Hyperling 2021-02-01 06:06:18 -06:00
  • 0a6ed914b4 Testing ansible_pkg_mgr fact. Hyperling 2021-02-01 06:04:35 -06:00
  • 062116df5a Shorten names. Hyperling 2021-02-01 05:55:24 -06:00
  • c71dace1d7 Add test for apt. Hyperling 2021-02-01 05:54:38 -06:00
  • d17ef1afbd Comment out keys import so I can test Debian. Hyperling 2021-02-01 05:51:00 -06:00
  • 250202a897 Debian still mad, moving when to import. Hyperling 2021-02-01 05:49:00 -06:00
  • e4968e258b Debian too old to use openssh_keypair from builtin. Hyperling 2021-02-01 05:47:22 -06:00
  • 36e2e6ee4b Testing for LearnLinuxTV Ansible Bug #1. Hyperling 2021-02-01 05:40:39 -06:00
  • b3728f691b Confirmed script is running as root. Remove -f to see if password prompt goes away. May need to specify the key location if this does not work. Hyperling 2021-02-01 05:20:05 -06:00
  • f220a0584c Add var param for debug. Hyperling 2021-02-01 05:17:51 -06:00
  • 922d0cfe82 Debugging the tests. Do not remove snapd from Ubuntu for now. Add some comments. Hyperling 2021-02-01 05:15:45 -06:00
  • 49035d6712 Trying to troubleshoot. Previous commands did not help. Hyperling 2021-02-01 05:10:17 -06:00
  • dfe2270979 Script was asking for password but a key is already joined. May not be running as who I expected. Add commands for testing. Hyperling 2021-02-01 05:08:25 -06:00
  • 69e223b0d7 Fix copy/paste error. Hyperling 2021-02-01 05:06:06 -06:00
  • af1eee5f03 More organization and beginning to add 1337 share. Hyperling 2021-02-01 05:03:27 -06:00
  • 834800df8c I guess facts are only strings, not booleans. Or I need to learn more. Hyperling 2021-02-01 03:52:26 -06:00
  • ff0e10506f Woops, accidentally installed cowsay, LOL! Hyperling 2021-01-31 18:06:02 -06:00
  • 0f0f9a3aeb Good ol' organization. Tasks folder started getting too busy, and still kind of is. Hyperling 2021-01-31 18:02:37 -06:00
  • 47be3301e1 Add superuser, sudo group, and sudo group sudoers file. Hyperling 2021-01-31 17:46:59 -06:00
  • 235d8c304d Removing TODOs and fixing some consistency errors. Hyperling 2021-01-31 17:21:39 -06:00
  • a62afe01d0 Remove more FQCN's for Debian. Hyperling 2021-01-31 17:17:14 -06:00
  • 8a91b2ad6e Go back to include instead of include_tasks so that ignoring CUPS error still works. Hyperling 2021-01-31 17:15:37 -06:00
  • 65a9394694 Add sudo to installed packages. How was that missed?? Hyperling 2021-01-31 17:14:08 -06:00
  • e0b9864a99 Hooray! Removing the FQCN for set_fact makes Debian happy! Hyperling 2021-01-31 17:10:39 -06:00
  • ccf28667e5 I think Debian liked removing FQCN. Trying the rest of the file. Hyperling 2021-01-31 17:09:07 -06:00
  • 1448dfed35 Debian still mad. Trying set_fact without FQCN. Hyperling 2021-01-31 17:07:57 -06:00
  • 7c555a4a88 Try removing --- from system.yml for Debian. Hyperling 2021-01-31 17:00:47 -06:00
  • 0b93f15794 Add tasks specifier in system.yml (Debian is still mad). Hyperling 2021-01-31 16:58:12 -06:00
  • a8af6f76f7 Changing include to include_tasks seems to help Debian. Change all instances in file for final test. Hyperling 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." Hyperling 2021-01-31 16:53:19 -06:00