blob: e4856517c64f4a9089dc3c488f25020468bfdca3 (
plain)
1
2
3
4
5
6
7
8
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
|