This is a simple ansible role to install packer into a RedHat-like 7+ box.
This module hasn't specific requirements just Ansible.
packer_version: 1.1.0
- packer_version: Specify the packer version to install
packer_dist_file: "packer_{{packer_version}}_linux_amd64.zip"
- packer_dist_file: Terraform distribution archive
packer_repo_url: "https://releases.hashicorp.com/packer/{{packer_version}}/{{ packer_dist_file }}"
- packer_repo_url: Terraform distribution URL. Used to fetch the Terraform binary
packer_base_install_dir: /opt/hashicorp/packer
- packer_base_install_dir: Root of the Terraform installation
packer_bin: /usr/bin/packer
- packer_bin: Terraform binary location
packer_requirements:
- unzip
- packer_requirements: Terraform playbook requirements
packer_purge_old: true
- packer_purge_old: Delete the oldest version installed in the system. Default: true
packer_cleanup: true
- packer_cleanup: Remove the Terraform distribution archive. Default: true
---
- hosts: localhost
become: true
connection: local
roles:
- mauromedda.ansible_role_packer
BSD
Author: Mauro Medda