diff options
Diffstat (limited to 'ansible/clean-vms/README')
-rw-r--r-- | ansible/clean-vms/README | 9 |
1 files changed, 9 insertions, 0 deletions
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 |