Skip to content

Latest commit

 

History

History
31 lines (17 loc) · 1.31 KB

PLAYBOOK_SETUP.md

File metadata and controls

31 lines (17 loc) · 1.31 KB

How to setup Ansible Playbooks

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.

  1. Download the Ansible playbook
  2. Place into packer-ansible folder
  3. Update custom-var.json

Download the Ansible playbook

Firstly, clone the repository.

Ansible repository

Place into packer-ansible folder

Next, go to the shared folder.

galaxy folder

Copy the main.yml and requirements.yml file to the packer-ansible folder.

Move to packer-ansible

Update custom-var.json

Lastly, update custom-var.json with the new files.

Update custom-var.json

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.