fixing obvious errors

This commit is contained in:
Matthew Stobbs
2026-02-06 01:28:14 -07:00
parent e91e7e9698
commit b87fc8235e
10 changed files with 149 additions and 181 deletions

View File

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