Files
ansible_role_package/tasks/pkgs/packer.yml
Matthew Stobbs ceabce67e4 removed bool check
Signed-off-by: Matthew Stobbs <matthew.stobbs@ucalgary.ca>
2025-05-12 14:24:27 -06:00

27 lines
627 B
YAML

# vim: set filetype=yaml.ansible :
---
- name: Load packer config
ansible.builtin.include_tasks:
file: config/packer.yml
- name: Append packer to pkg_tap
when:
- packer.method == 'tap'
ansible.builtin.set_fact:
pkg_tap: "{{ pkg_tap + packer.pkgs }}"
- name: Append packer to pkg_sys
when:
- packer.method == 'sys'
notify:
- Depend hashicorp repo
changed_when: true
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + packer.pkgs }}"
- name: Append packer to pkg_archive
when:
- packer.method == 'archive'
ansible.builtin.set_fact:
pkg_archive: "{{ pkg_archive + ['packer'] }}"