Working on source packages

Signed-off-by: Matthew Stobbs <matthew@stobbs.ca>
This commit is contained in:
Matthew Stobbs
2026-02-02 02:35:16 -07:00
parent fa78c0aa0c
commit c613a29ce4
14 changed files with 470 additions and 396 deletions

View File

@@ -1,5 +0,0 @@
# vim: set filetype=yaml.ansible :
---
- name: "Add include task for {{ pkg }}"
ansible.builtin.include_tasks:
file: "pkgs/{{ pkg }}.yml"

29
tasks/helpers/archive.yml Normal file
View File

@@ -0,0 +1,29 @@
# vim: set filetype=yaml.ansible :
---
- name: Extract archive to given path
block:
- name: Ensure directory exists
become: "{{ install_become }}"
become_user: "{{ install_become_user }}"
ansible.bulitin.file:
state: directory
path: "{{ extract_path }}"
mode: "{{ install_prefix_mode }}"
owner: "{{ install_prefix_owner }}"
group: "{{ install_prefix_group }}"
- name: Download archive to cache
ansible.builtin.get_url:
dest: "{{ d_cache }}/{{ archive_name }}"
url: "{{ archive_url }}"
checksum: "{{ archive_checksum }}"
decompress: false
mode: '0644'
- name: Extract go archive
ansible.builtin.unarchive:
dest: "{{ extract_path }}"
src: "{{ d_cache }}/{{ archive_name }}"
remote_src: true
include: "{{ archive_include | default(omit) }}"
exclude: "{{ archive_exclude | default(omit) }}"