No description
Find a file
2026-04-28 17:34:17 +02:00
.github/workflows Update supported platforms & CI 2026-03-14 19:50:54 +01:00
defaults Update CI 2026-02-17 23:30:57 +01:00
meta Update CI 2026-02-17 23:30:57 +01:00
molecule/default Update supported platforms & CI 2026-03-14 15:11:58 +01:00
tasks fix: Improve package plugin installation 2026-04-28 17:34:17 +02:00
.ansible-lint feat: Update CI to latest standards 2022-10-08 13:36:51 +02:00
.cicd Update CI 2026-03-06 22:58:44 +01:00
.cicd.overwrite Update CI 2026-03-06 22:58:44 +01:00
.collections feat: Move to FQCN 2022-10-08 13:36:31 +02:00
.gitignore feat: Update supported platforms & CI 2024-12-29 02:11:41 +01:00
.releaserc.yml feat: Add support for plugins 2026-02-17 23:15:57 +01:00
.roles feat: Update CI to latest standards 2022-10-08 13:36:51 +02:00
.yamllint feat: Update supported platforms & CI 2024-12-29 02:11:41 +01:00
README.md Update CI 2026-02-17 23:30:57 +01:00

CI

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