working on cleanup and fixing a few format issues

- modifying how installs are done
This commit is contained in:
Matthew Stobbs
2026-02-15 17:57:05 -07:00
parent b1a4780a97
commit e39c3b7046
11 changed files with 201 additions and 139 deletions

View File

@@ -15,7 +15,7 @@
when:
- air_install_method is undefined
ansible.builtin.set_fact:
air_install_method: "{{ install_method if install_method in air_install_methods else air_install_methods[0] }}"
air_install_method: "{{ install_method if install_method in air.install_methods else air.install_methods[0] }}"
- name: Set air build facts
when:
@@ -27,6 +27,7 @@
url: "{{ air_install_url }}@{{ air_version }}"
bin: "{{ path_bin }}/air"
# }}}
# {{{ air build and install steps
- name: Append air to pkg_go
when:
- air_install_method == 'source'
@@ -34,23 +35,19 @@
- name: Clean existing air install
when:
- clean_install
loop: "{{ air_build_files }}"
loop_control:
loop_var: air_file
ansible.builtin.file:
state: absent
path: "{{ install_prefix }}/{{ air_file }}"
ansible.builtin.set_fact:
pkg_clean: "{{ pkg_clean + air.install_files }}"
- name: Configure pkg dependencies
loop: "{{ air_pkg_deps }}"
loop: "{{ air.pkg_deps }}"
loop_control:
loop_var: air_pkg_dep
ansible.builtin.include_tasks: "{{ air_pkg_dep }}"
loop_var: pkg
ansible.builtin.include_tasks: "pkgs/{{ pkg }}.yml"
- name: Add air to install list
ansible.builtin.set_fact:
pkg_go: "{{ pkg_go + [air_go_pkg] }}"
# }}}
- name: Finalize air configuration
ansible.builtin.set_fact:
__configured: "{{ __configured | combine( { 'air': true } ) }}"