go_install helper now being used

This commit is contained in:
Matthew Stobbs
2026-02-11 10:50:48 -07:00
parent b6f7ba485b
commit 3df63f1451
7 changed files with 190 additions and 186 deletions

View File

@@ -2,7 +2,8 @@
# Package: air
# Description: application auto reload for go
# Version: latest
# Methods: source (go install)
# Methods:
# - source (go install)
# Helpers: go_install
---
# {{{ Configure air
@@ -14,7 +15,7 @@
when:
- air_install_method is undefined
ansible.builtin.set_fact:
air_install_method: "{% if install_method in air_install_methods %}{{ install_method }}{% else %}{{ air_install_method[0] }}{% endif %}"
air_install_method: "{{ install_method if install_method in air_install_methods else air_install_methods[0] }}"
- name: Configure air source install
when:
@@ -33,9 +34,9 @@
- name: Clean existing air install
when:
- clean_install
loop: air_build_files
loop: "{{ air_build_files }}"
loop_control:
lopo_var: air_file
loop_var: air_file
ansible.builtin.file:
state: absent
path: "{{ install_prefix }}/{{ air_file }}"