1e453e8df4Shell is prompting just fine on its own, no need for variable. Make sure leet folder exists.Hyperling2021-02-01 07:56:00 -06:00
e2921ea6d7Remove when. I wish I could only ask conditionally.Hyperling2021-02-01 07:30:47 -06:00
251b2acc37Moving vars_prompt and testing if it accepts when clause.Hyperling2021-02-01 07:29:59 -06:00
59e2789df0Ask for password then pass it to the ssh-copy-id. Hoping prompt does not need moved to local.yml.Hyperling2021-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.Hyperling2021-02-01 07:19:51 -06:00
51b17411e8It would be hard to try multiple ways if any but the last failed. :PHyperling2021-02-01 07:05:19 -06:00
827e089300Trying 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.Hyperling2021-02-01 07:04:41 -06:00
20e785aaebAdd quotes to command and prepare for need to ignore_errors.Hyperling2021-02-01 06:57:11 -06:00
edf6f0d63cignore_errors got left behind on the wrong import! ;DHyperling2021-02-01 06:55:03 -06:00
e3b5d6b915Add pkg refresh for FreeBSD. Create SSH key with shell instead of fancy module. Still looking into how to (safely) get newer ansible on Debian.Hyperling2021-02-01 06:52:28 -06:00
a68bafd338Better and more consistent names.Hyperling2021-02-01 06:43:32 -06:00
b1471edf52Add 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.Hyperling2021-02-01 06:40:23 -06:00
c7b0c4f265Remove tests, start using ansible_pkg_mgr. :DHyperling2021-02-01 06:36:00 -06:00
3e78c363c7Change family test to only be for Debian.Hyperling2021-02-01 06:09:08 -06:00
d17ef1afbdComment out keys import so I can test Debian.Hyperling2021-02-01 05:51:00 -06:00
250202a897Debian still mad, moving when to import.Hyperling2021-02-01 05:49:00 -06:00
e4968e258bDebian too old to use openssh_keypair from builtin.Hyperling2021-02-01 05:47:22 -06:00
36e2e6ee4bTesting for LearnLinuxTV Ansible Bug #1.Hyperling2021-02-01 05:40:39 -06:00
b3728f691bConfirmed 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.Hyperling2021-02-01 05:20:05 -06:00
922d0cfe82Debugging the tests. Do not remove snapd from Ubuntu for now. Add some comments.Hyperling2021-02-01 05:15:45 -06:00
49035d6712Trying to troubleshoot. Previous commands did not help.Hyperling2021-02-01 05:10:17 -06:00
dfe2270979Script was asking for password but a key is already joined. May not be running as who I expected. Add commands for testing.Hyperling2021-02-01 05:08:25 -06:00
8a91b2ad6eGo back to include instead of include_tasks so that ignoring CUPS error still works.Hyperling2021-01-31 17:15:37 -06:00
65a9394694Add sudo to installed packages. How was that missed??Hyperling2021-01-31 17:14:08 -06:00
e0b9864a99Hooray! Removing the FQCN for set_fact makes Debian happy!Hyperling2021-01-31 17:10:39 -06:00
ccf28667e5I think Debian liked removing FQCN. Trying the rest of the file.Hyperling2021-01-31 17:09:07 -06:00
1448dfed35Debian still mad. Trying set_fact without FQCN.Hyperling2021-01-31 17:07:57 -06:00
7c555a4a88Try removing --- from system.yml for Debian.Hyperling2021-01-31 17:00:47 -06:00
0b93f15794Add tasks specifier in system.yml (Debian is still mad).Hyperling2021-01-31 16:58:12 -06:00
a8af6f76f7Changing include to include_tasks seems to help Debian. Change all instances in file for final test.Hyperling2021-01-31 16:54:59 -06:00
5b179ffc0dTesting 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."Hyperling2021-01-31 16:53:19 -06:00
7ede59c950Allow ansible-pull to spam ansible's mail file so I know if it's doing work.Hyperling2021-01-31 16:28:51 -06:00
eb4bc98b03Remove special characters from names as well as do a little reformatting.Hyperling2021-01-31 16:22:01 -06:00
9a39c7c7bbFix ansible-pull path for FreeBSD. Fix inventory file in cfg (file is being used!).Hyperling2021-01-31 16:10:57 -06:00
d1756ea20eFix "conditional statements should not include jinja2 templating". Test breaking the cfg file to see if it is even being used.Hyperling2021-01-31 15:58:21 -06:00
8f29741a38Hide all the annoying warnings for every hostname iteration.Hyperling2021-01-31 15:53:13 -06:00
3bb46c78e5It's working! Servers are grabbing the changes! Scripts tested successfully on Ubuntu 20.10. Not working on Debian 10 though, failing based on system.yml's first name module?Hyperling2021-01-31 15:51:16 -06:00
0dc4a0aad3Fix users not using variables anymore besides for OS-specific group.Hyperling2021-01-31 15:43:08 -06:00
8b95472479Change all group to everything since all is already a keyword.Hyperling2021-01-31 15:40:10 -06:00
5c47f396ecStarting to test Ubuntu Server. Need to find a way to get it working without putting it in the hosts file.Hyperling2021-01-31 15:38:46 -06:00
cb126dcc0bSplit UI into Linux vs FreeBSD to avoid "local.yml, line 25, column 3, found a duplicate dict key (tasks). Using last defined value only."Hyperling2021-01-31 14:24:09 -06:00
9eff4d7109Remove the marker atribute so I don't play with them in the future. They need to stay static so the block gets updated not inserted.Hyperling2021-01-31 14:18:41 -06:00
d4c59bd6c0Add rc.conf and fstab settings for FreeBSD GUI + SSHFS.Hyperling2021-01-31 14:16:57 -06:00
447cb33919Remove failed_when, will just have to get used to seeing the errors on systems without CUPS.Hyperling2021-01-31 14:01:18 -06:00
336480ba2bTry different failed_when syntax.Hyperling2021-01-31 14:00:04 -06:00
fc4e49b355Try to silence CUPS failures. They aren't stopping playback but they look bad.Hyperling2021-01-31 13:58:15 -06:00
6336715b98Change shell chmod to file module.Hyperling2021-01-31 13:55:18 -06:00
a53ec10a99Fix quotes so that I can remove lynis_exec variable.Hyperling2021-01-31 13:50:27 -06:00
63e848210cRemove comments, FreeBSD has been tested pretty well now. Still have a bit to do though in the GUI setup file.Hyperling2021-01-31 13:41:45 -06:00
4cd52e5405Create new variable for lynis executable.Hyperling2021-01-31 13:40:06 -06:00
9313d1a7edOCD: Call lynis from the install directory variable. Happened to be the same on all systems so it worked on FreeBSD.Hyperling2021-01-31 13:36:54 -06:00
f66e39ad6eFix package variable "present: no" to "state: absent". Also added "state: present" to other package calls. I was so close to knowing it off-hand!Hyperling2021-01-31 13:25:18 -06:00
59e3dc7947Service module complained about ignore_errors. Trying it on the include.Hyperling2021-01-31 13:19:35 -06:00
dddfdb7800Ignore CUPS removal failures if they are not installed on a system (FreeBSD).Hyperling2021-01-31 13:15:55 -06:00
b57f49e7c9FreeBSD does not support update_cache.Hyperling2021-01-31 13:13:21 -06:00
319a717e68Adjust for FreeBSD root group being wheel.Hyperling2021-01-31 13:11:40 -06:00