List of Ansible Playbooks¶
Provisioning a Virtual Machine¶
It is important to highlight provisioning a new virtual machine because it is core to deploying services. Running the playbooks/provision_vm.yml playbook is unique in that it requires using the ansible become user.
cd /ansible/dev/ansible
git pull
INV=inventory/ansible/inventory.ini
ansible-playbook -k -i $INV playbooks/provision_vm.yml
When prompted for the become user password, make sure to enter the password for the ansible user.
Provisioning a new virtual machine using this playbook calls other playbooks that does the following:
- Create a new virtual machine
- Create required users
- Join the virtual machine to the domain
- Deploy Python3 to the virtual machine
- Prep Ansible node
- Formats second disk if available
Ansible Playbooks¶