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,24 +1,16 @@
# vim: set filetype=yaml.ansible :
---
- name: Add go
- name: Load go config
ansible.builtin.include_tasks:
file: config/go.yml
- name: Append go to pkg_archive
when:
- go_configured is undefined
block:
- name: Load go config
ansible.builtin.include_tasks:
file: config/go.yml
- go.method == 'archive'
ansible.builtin.set_fact:
pkg_archive: "{{ pkg_archive + ['go'] }}"
- name: Append go to pkg_archive
when:
- go.method == 'archive'
ansible.builtin.set_fact:
pkg_archive: "{{ pkg_archive + ['go'] }}"
- name: Append to pkg_sys
- go.method != 'archive'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['go'] }}"
- name: Set go_configured
ansible.builtin.set_fact:
go_configured: true
- name: Append to pkg_sys
- go.method != 'archive'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['go'] }}"