Skip to content
Peter Sankauskas edited this page Aug 26, 2013 · 1 revision

Overview

There is a YAML file you can customize for the Ansible Provisioner:

aminator.plugins.provisioner.ansible.yml

Inventory

When ansible-playbook is run, it uses Local mode since it is running in a chroot environment. This means there isn't much use for an inventory file, but you can still configure it. Here are the defaults:

inventory_file_path: /etc/ansible
inventory_file: local
inventory_file_content: |
  127.0.0.1
  • inventory_file_path is the directory the inventory files lives in
  • inventory_file is the name of the inventory file itself. So in this example, the full location is: /etc/ansible/local
  • inventory_file_content the content of the file

Ansible Playbooks

  • playbooks_path_source is the path to all Ansible playbooks on the Aminator instance. This path is outside of the chroot environment. These will be copied to playbooks_path_dest during the provisioning stage. The default path is currently: /usr/local/netflixoss-ansible/playbooks to match with this

  • playbooks_path_dest is the location to store playbooks on the AMI. This is inside the chroot environment. The default value is: /var/lib/ansible/playbooks.

  • keep_playbooks determines whether the playbooks copied to the AMI are kept before snapshotting the volume. By default (which is True) they are kept in playbooks_path_dest

Clone this wiki locally