mirror of
https://github.com/de-it-krachten/ansible-role-packer
synced 2026-05-14 03:41:52 +00:00
No description
- Jinja 100%
| .github/workflows | ||
| defaults | ||
| meta | ||
| molecule/default | ||
| tasks | ||
| .ansible-lint | ||
| .cicd | ||
| .cicd.overwrite | ||
| .collections | ||
| .gitignore | ||
| .releaserc.yml | ||
| .roles | ||
| .yamllint | ||
| README.md | ||
ansible-role-packer
Install hashicorp packer
Dependencies
Roles
None
Collections
None
Platforms
Supported platforms
- Red Hat Enterprise Linux 81
- Red Hat Enterprise Linux 91
- RockyLinux 8
- RockyLinux 9
- OracleLinux 8
- OracleLinux 9
- AlmaLinux 8
- AlmaLinux 9
- Debian 11 (Bullseye)
- Debian 12 (Bookworm)
- Ubuntu 22.04 LTS
- Ubuntu 24.04 LTS
- Fedora 42
- Fedora 43
Note: 1 : no automated testing is performed on these platforms
Role Variables
defaults/main.yml
# Packer OS packages
packer_packages:
- packer
# product platform
packer_platform: "{{ ansible_system | lower }}"
# product architecture
packer_arch: "{{ 'amd64' if ansible_architecture == 'x86_64' else ansible_architecture }}"
# product install mode (binary or package)
packer_install_mode: package
# product zip filename
packer_zip: >-
packer_{{ packer_version }}_{{ packer_platform }}_{{ packer_arch }}.zip
# product download url
packer_product_url: >-
https://releases.hashicorp.com/packer/{{ packer_version }}/{{ packer_zip }}
# List of packer plugin to install
packer_plugins: []
# Execute packer build phase
packer_build: false
Example Playbook
molecule/default/converge.yml
- name: sample playbook for role 'packer'
hosts: all
become: 'yes'
tasks:
- name: Include role 'packer'
ansible.builtin.include_role:
name: packer