removed bool check

Signed-off-by: Matthew Stobbs <matthew.stobbs@ucalgary.ca>
This commit is contained in:
Matthew Stobbs
2025-05-12 14:24:27 -06:00
parent d0fbd457bb
commit ceabce67e4
84 changed files with 588 additions and 1107 deletions

View File

@@ -1,34 +1,26 @@
# vim: set filetype=yaml.ansible :
---
- name: Add packer
- name: Load packer config
ansible.builtin.include_tasks:
file: config/packer.yml
- name: Append packer to pkg_tap
when:
- packer_configured is undefined
block:
- name: Load packer config
ansible.builtin.include_tasks:
file: config/packer.yml
- packer.method == 'tap'
ansible.builtin.set_fact:
pkg_tap: "{{ pkg_tap + packer.pkgs }}"
- 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_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'] }}"
- name: Set packer_configured
ansible.builtin.set_fact:
packer_configured: true
- name: Append packer to pkg_archive
when:
- packer.method == 'archive'
ansible.builtin.set_fact:
pkg_archive: "{{ pkg_archive + ['packer'] }}"