updating documentation

- giving things a better structure
- better documentation with the way things need to be as a standard
This commit is contained in:
Matthew Stobbs
2026-02-04 22:26:15 -07:00
parent 4e65d36b64
commit e231c6ae7a
15 changed files with 221 additions and 194 deletions

View File

@@ -1,26 +1,33 @@
# vim: set filetype=yaml.ansible :
---
- name: Install appimage {{ pkg }}
become: "{{ ext_become }}"
become: "{{ install_become }}"
become_user: "{{ install_become_user }}"
block:
- name: Ensure appimage path exists
ansible.builtin.file:
path: "{{ path.appimage }}/{{ appimage_link_name }}"
mode: '0755'
path: "{{ path_appimage }}/{{ pkg.name }}"
mode: "{{ pkg.mode | default('0755') }}"
owner: "{{ pkg.owner | default(ansible_user_id) }}"
group: "{{ pkg.group | default(ansible_user_gid) }}"
state: directory
- name: Fetch appimage
become: "{{ ext_become }}"
become: "{{ install_become }}"
become_user: "{{ install_become_user }}"
ansible.builtin.get_url:
mode: '0755'
mode: "{{ pkg.mode | default('0755') }}"
owner: "{{ pkg.owner | default(ansible_user_id) }}"
group: "{{ pkg.group | default(ansible_user_gid) }}"
url: "{{ pkg.url }}"
dest: "{{ path_appimage }}/{{ pkg.name }}/{{ pkg.filename }}"
decompress: false
backup: true
url: "{{ appimage_url }}"
dest: "{{ path.appimage }}/{{ appimage_link_name }}/{{ appimage_file }}"
backup: false
- name: Link appimage to bin
become: "{{ ext_become }}"
become: "{{ install_become }}"
become_user: "{{ install_become_user }}"
ansible.builtin.file:
state: link
src: "{{ path.appimage }}/{{ appimage_link_name }}/{{ appimage_file }}"
path: "{{ path.bindir }}/{{ appimage_link_name }}"
src: "{{ path_appimage }}/{{ pkg.name }}/{{ pkg.filename }}"
path: "{{ path_bin }}/{{ pkg.name }}"