working on helpers

This commit is contained in:
Matthew Stobbs
2026-02-05 17:18:02 -07:00
parent e231c6ae7a
commit e91e7e9698
12 changed files with 170 additions and 147 deletions

View File

@@ -11,7 +11,7 @@
- name: Ensure directory exists
become: "{{ install_become }}"
become_user: "{{ install_become_user }}"
ansible.bulitin.file:
ansible.builtin.file:
state: directory
path: "{{ pkg.extract_to }}"
mode: "{{ pkg.mode | default('0755') }}"
@@ -20,25 +20,29 @@
- name: Download archive to cache
ansible.builtin.get_url:
dest: "{{ d_cache }}/{{ pkg.name }}"
dest: "{{ d_cache.path }}/{{ pkg.name }}"
url: "{{ pkg.url }}"
checksum: "{{ pkg.checksum | default(omit) }}"
decompress: false
mode: '0644'
- name: Extract archive
become: "{{ install_become }}"
become_user: "{{ install_become_user }}"
ansible.builtin.unarchive:
dest: "{{ pkg.extract_to }}"
src: "{{ d_cache }}/{{ pkg.name }}"
src: "{{ d_cache.path }}/{{ pkg.name }}"
remote_src: true
include: "{{ pkg.include | default(omit) }}"
exclude: "{{ pkg.exclude | default(omit) }}"
- name: Symlink archive files
become: "{{ install_become }}"
become_user: "{{ install_become_user }}"
when:
- pkg.bins is defined
- pkg.bins | length > 0
loop: pkg.bins
- pkg.links is defined
- pkg.links | length > 0
loop: "{{ pkg.links }}"
loop_control:
loop_var: lnk
ansible.builtin.file: