From c269e41eec5213df07973eb2cb09bfad93c04ab6 Mon Sep 17 00:00:00 2001 From: Kyle Kaminski Date: Wed, 14 Jul 2021 17:39:37 -0500 Subject: play around with ansible --- ansible/clean-vms/README | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 ansible/clean-vms/README (limited to 'ansible/clean-vms/README') diff --git a/ansible/clean-vms/README b/ansible/clean-vms/README new file mode 100644 index 0000000..e485651 --- /dev/null +++ b/ansible/clean-vms/README @@ -0,0 +1,9 @@ +- requirements + # sudo apt-get install sshpass -y (install on the Control node), needed when ansible_ssh_pass is defined + +- to run + $ ansible-playbook vm-setup.yml + $ ansible-playbook vm-clean.yml + +- if ansible.cfg & hosts weren't present or you wanted to override them, the full 'ansible-playbook' command would be: +$ ansible-playbook - i "192.168.56.101, 192.168.56.102 192.168.56.103 192.168.56.104" ansible_user=root ansible_ssh_pass=foobar -e ‘{“user”: [{ "name": "root", "password": "Foobar64", "state": "present" }] }’ -e '{"packages":["curl","wget","vim","atop"]}' vm-setup.yml -- cgit v1.2.3