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,41 +1,33 @@
# vim: set filetype=yaml.ansible :
---
- name: Add terraform
- name: Load terraform config
ansible.builtin.include_tasks:
file: config/terraform.yml
- name: Append terraform
when:
- terraform_configured is undefined
- terraform.method == 'sys'
block:
- name: Load terraform config
ansible.builtin.include_tasks:
file: config/terraform.yml
- name: Append terraform
- name: Append terraform to pkg_tap
when:
- terraform.method == 'sys'
block:
- name: Append terraform to pkg_tap
when:
- ansible_distribution == 'MacOSX'
notify:
- Depend hashicorp repo
changed_when: true
ansible.builtin.set_fact:
pkg_tap: "{{ pkg_tap + terraform.pkgs }}"
- ansible_distribution == 'MacOSX'
notify:
- Depend hashicorp repo
changed_when: true
ansible.builtin.set_fact:
pkg_tap: "{{ pkg_tap + terraform.pkgs }}"
- name: Append terraform to pkg_sys
when:
- ansible_system == 'Linux'
notify:
- Depend hashicorp repo
changed_when: true
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + terraform.pkgs }}"
- name: Append terraform to pkg_archive
- name: Append terraform to pkg_sys
when:
- terraform.method == 'archive'
- ansible_system == 'Linux'
notify:
- Depend hashicorp repo
changed_when: true
ansible.builtin.set_fact:
pkg_archive: "{{ pkg_archive + ['terraform'] }}"
pkg_sys: "{{ pkg_sys + terraform.pkgs }}"
- name: Set terraform_configured
ansible.builtin.set_fact:
terraform_configured: true
- name: Append terraform to pkg_archive
when:
- terraform.method == 'archive'
ansible.builtin.set_fact:
pkg_archive: "{{ pkg_archive + ['terraform'] }}"