packer

coxley.packer

Do what the fuck you want

Note: This is Archlinux packer, not Hashicorp

The purpose of this role is to install pre-reqs for ansible-packer and expose this module for use.

This is glue around:

The former is used to install packer pre-reqs in favor of the more fleshed out packer module.

Example Playbook

Ideal way to use this is within another role, declaring this as a role dependency.

Assuming you have role common, edit 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 looks something like:


---
# Install package foo
- packer: name=foo state=present

# Remove packages foo and bar
- packer: name=foo,bar state=absent

# Recursively remove package baz
- 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

Install
ansible-galaxy install coxley/ansible_packer
GitHub repository
License
wtfpl
Downloads
84
Owner
code is 80% of my name ¯\_(ツ)_/¯