coxley.packer
coxley.packer
Note: This is the Archlinux version of packer
, not the one from Hashicorp.
The goal of this role is to install requirements for ansible-packer and make this module available for use.
This module works with:
The first one is used to install packer requirements instead of using the more complex packer module.
Example Playbook
The best way to use this is within another role, by adding it as a role dependency.
If you have a role named common
, edit the meta/main.yml
:
---
dependencies:
- { role: 'coxley.packer', when: ansible_os_family == 'Archlinux' }
Then, in the following dependencies and the role itself, you will have access to
ansible-packer
, which can look like this:
---
# Install package foo
- packer: name=foo state=present
# Remove packages foo and bar
- packer: name=foo,bar state=absent
# Remove package baz and its dependencies
- packer: name=baz state=absent recurse=yes
Requirements
You must have httplib2
for Python installed where you are running Ansible
from.
License
WTFPL
Author Information
Codey Oxley codey.a.oxley+os@gmail.com