Working on ansible-lint
- need to figure out testing
This commit is contained in:
@@ -1,5 +1,16 @@
|
|||||||
# vim: set filetype=yaml.ansible :
|
# vim: set filetype=yaml.ansible :
|
||||||
---
|
---
|
||||||
|
- name: Set air configuration
|
||||||
|
block:
|
||||||
|
- 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') }}"
|
||||||
|
|
||||||
|
- name: Set air install path
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
air_pkg: "{{ air_url }}@{{ air_version }}"
|
||||||
|
|
||||||
- name: Append air to pkg_go
|
- name: Append air to pkg_go
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_go: "{{ pkg_go + ['github.com/air-verse/air@latest'] }}"
|
pkg_go: "{{ pkg_go + [air_install] }}"
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
# vim: set filetype=yaml.ansible :
|
# vim: set filetype=yaml.ansible :
|
||||||
---
|
---
|
||||||
- name: Configure alacritty # {{{
|
- name: Configure alacritty # {{{
|
||||||
when: __alacritty_configured is undefined
|
when:
|
||||||
|
- __alacritty_configured is undefined or
|
||||||
|
not __alacritty_configured
|
||||||
block:
|
block:
|
||||||
- name: Set basic variables
|
- name: Set basic variables
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
@@ -95,6 +97,11 @@
|
|||||||
- pkgconf
|
- pkgconf
|
||||||
- python3
|
- python3
|
||||||
- desktop-file-utils
|
- desktop-file-utils
|
||||||
|
- name: Finished alacritty configuration
|
||||||
|
when: __alacritty_configured is undefined
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
__alacritty_configured: true
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
- name: Append alacritty installation
|
- name: Append alacritty installation
|
||||||
block:
|
block:
|
||||||
|
|||||||
@@ -1,9 +1,27 @@
|
|||||||
# vim: set filetype=yaml.ansible :
|
# vim: set filetype=yaml.ansible :
|
||||||
---
|
---
|
||||||
|
- name: Configure ansible-lint
|
||||||
|
when:
|
||||||
|
- __ansible_lint_configured is undefined or
|
||||||
|
not __ansible_lint_configured
|
||||||
|
block:
|
||||||
|
- name: Set basic variables
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
ansible_lint_version: latest
|
||||||
|
ansible_lint_default_install_method: system
|
||||||
|
- name: Configure package options
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
ansible_lint_install_method: "{{ ansible_lint_install_method | default(install_method) }}"
|
||||||
|
- name: Set pipx name
|
||||||
|
when:
|
||||||
|
- ansible_lint_install_method == 'pipx'
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
ansible_lint_pkgname: ansible-lint
|
||||||
|
- name: Set package name
|
||||||
|
when:
|
||||||
|
- install_method == 'system'
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
ansible_lint_pkgname: ansible-lint
|
||||||
- name: Append ansible-lint to pkg_sys
|
- name: Append ansible-lint to pkg_sys
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_sys: "{{ pkg_sys + ['ansible-lint'] }}"
|
pkg_sys: "{{ pkg_sys + [ansible_lint_pkgname] }}"
|
||||||
|
|
||||||
- name: Dump pkg_sys
|
|
||||||
debug:
|
|
||||||
var: pkg_sys
|
|
||||||
|
|||||||
Reference in New Issue
Block a user