Working on source packages
Signed-off-by: Matthew Stobbs <matthew@stobbs.ca>
This commit is contained in:
@@ -1,36 +1,29 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Set air configuration
|
||||
- name: Set air configuration # {{{
|
||||
when:
|
||||
- __air_configured is undefined or
|
||||
not __air_configured
|
||||
block:
|
||||
- name: Set air_install_method
|
||||
- name: Set air install method
|
||||
when:
|
||||
- air_install_method is undefined
|
||||
ansible.builtin.set_fact:
|
||||
air_install_method: source
|
||||
air_install_method: "{% if install_method in air_install_methods %}{{ install_method }}{% else %}{{ air_install_method[0] }}{% endif %}"
|
||||
|
||||
- name: Set air version and url
|
||||
ansible.builtin.set_fact:
|
||||
air_version: "{{ air_version | default('latest') }}"
|
||||
air_url: "{{ air_url | default('github.com/air-verse/air') }}"
|
||||
air_install_url: "{{ air_install_url | default('github.com/air-verse/air') }}"
|
||||
|
||||
- name: Set air install path
|
||||
- name: Set air install package
|
||||
ansible.builtin.set_fact:
|
||||
air_pkg: "{{ air_url }}@{{ air_version }}"
|
||||
|
||||
- name: Ensure air_install_method is valid
|
||||
when:
|
||||
- air_install_method is defined
|
||||
- air_install_method not in air_install_methods
|
||||
ansible.builtin.set_fact:
|
||||
air_intall_method: air_install_methods[0]
|
||||
air_pkg: "{{ air_install_url }}@{{ air_version }}"
|
||||
|
||||
- name: Complete air configuration
|
||||
ansible.builtin.set_fact:
|
||||
__air_configured: true
|
||||
|
||||
# }}}
|
||||
- name: Append air to pkg_go
|
||||
when:
|
||||
- air_install_method == 'source'
|
||||
|
||||
Reference in New Issue
Block a user