Reusable ansible playbooks
-
Install ansible sudo apt install ansible
-
Configure SSH on the control and slave nodes ssh-keygen
-
Copy ssh keys from control to slave node at [email protected] ssh-copy-id [email protected]
-
Edit hosts inventory file as appropriate vi ./hosts
-
Test that ansible can connect to the nodes. Where -u is the log in user name on node ansible test -i hosts -kK --become -u osboxes -m ping
-
See more code snippets in the snippets file