No description
Find a file
2026-06-09 11:14:36 +02:00
.github/workflows Update CI 2026-06-09 00:34:54 +02:00
defaults Improve support for ansible-core 2.20+ 2026-06-07 20:46:09 +02:00
meta Update CI 2026-06-07 17:49:00 +02:00
molecule/default Update CI 2026-06-09 11:14:36 +02:00
tasks feat: Add support for ansible-core 2.20+ 2026-06-07 16:25:31 +02:00
.ansible-lint Update CI 2026-06-07 17:49:00 +02:00
.cicd Update CI 2026-06-09 11:14:36 +02: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-06-08 13:34:42 +02: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
  • Ubuntu 26.04 LTS
  • Fedora 43
  • Fedora 441

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_facts.system | lower }}"

# product architecture
packer_arch: "{{ 'amd64' if ansible_facts.architecture == 'x86_64' else ansible_facts.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