updating and removing

This commit is contained in:
2026-03-15 22:38:49 -06:00
parent fe266d4b73
commit f52a6eca6a
9 changed files with 130 additions and 85 deletions

View File

@@ -1,13 +1,41 @@
# vim: set filetype=yaml.ansible :
#
## Package: checkmake
## Description: linter for makefiles
## Version: latest
## Methods: source
## Helpers: go
---
- name: Add checkmake
- name: Set checkmake default facts
ansible.builtin.set_fact:
checkmake:
install_methods:
- source
go_pkg: github.com/mrtazz/checkmake/cmd/checkmake
version: latest
- name: Configure checkmake
when:
- checkmake_configured is undefined
block:
- name: Add checkmake to pkg_go
- name: Set checkmake install method
when:
- checkmake_install_method is undefined
ansible.builtin.set_fact:
pkg_go: "{{ pkg_go + ['github.com/mrtazz/checkmake/cmd/checkmake@latest'] }}"
checkmake_install_method: "{{ install_method if install_method in checkmake.install_methods else checkmake.install_methods[0] }}"
- name: Configure checkmake source install
when:
- checkmake_install_method == 'source'
block:
- name: Configure checkmake go install
ansible.builtin.set_fact:
checkmake_go_install:
url: "{{ checkmake.go_pkg }}@{{ checkmake.version }}"
- name: Queue checkmake source install
ansible.builtin.set_fact:
pkg_go: "{{ pkg_go + [checkmake_go_install] }}"
- name: Set checkmake_configured
ansible.builtin.set_fact:
checkmake_configured: true
__configured: "{{ __configured | combine( { 'checkmake': checkmake_install_method } ) }}"