mauromedda.ansible_role_packer

ansible_role_packer

This is a simple ansible role to install packer into a RedHat-like 7+ box.

Requirements

This module hasn't specific requirements just Ansible.

Role Variables

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

Example Playbook

---
- hosts: localhost
  become: true
  connection: local

  roles:
    - mauromedda.ansible_role_packer

License

BSD

Author Information

Author: Mauro Medda

About

An Ansible role for installing Terraform

Install
ansible-galaxy install mauromedda.ansible_role_packer
GitHub repository
License
bsd-2-clause
Downloads
82
Owner
Head of DevSecOps