To illustrate the power of Ansible playbooks and Ansible Galaxy, this demo will show you how Ansible Playbooks can be setup in 3 easy steps. This demo will use a template ansible playbook provided by geerlingguy.
- Download the Ansible playbook
- Place into packer-ansible folder
- Update custom-var.json
Firstly, clone the repository.
Next, go to the shared folder.
Copy the main.yml and requirements.yml file to the packer-ansible folder.
Lastly, update custom-var.json with the new files.
Now you are ready to create an image that has been configured with your ansible playbook. On how to build images, do refer to our centos, debian and ubuntu guide.