40 lines
1.6 KiB
YAML
40 lines
1.6 KiB
YAML
# vim: set filetype=yaml.ansible :
|
|
#
|
|
## Variables:
|
|
## appimage is top level:
|
|
## name: symlink name, command used on CLI to launch
|
|
## url: url to download appimage
|
|
## filename: filename of appimage
|
|
## mode: file mode of the appimage, optional
|
|
## checksum: file checksum of appimage if available, optional
|
|
---
|
|
- name: Install appimages {{ appimage.name }}
|
|
become: "{{ install_become }}"
|
|
become_user: "{{ install_become_user }}"
|
|
block:
|
|
- name: Ensure appimage path exists {{ appimage.name }}
|
|
ansible.builtin.file:
|
|
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 {{ appimage.name }}
|
|
ansible.builtin.get_url:
|
|
mode: "{{ appimage.mode | default('0755') }}"
|
|
owner: "{{ appimage.owner | default(ansible_user_id) }}"
|
|
group: "{{ appimage.group | default(ansible_user_gid) }}"
|
|
url: "{{ appimage.url }}/{{ appimage.filename }}"
|
|
dest: "{{ path_appimage }}/{{ appimage.name }}/{{ appimage.filename }}"
|
|
checksum: "{{ appimage.checksum | default(omit) }}"
|
|
decompress: false
|
|
backup: false
|
|
|
|
- name: Link appimage to bin {{ appimage.name }}
|
|
vars:
|
|
links:
|
|
- from: "{{ path_appimage }}/{{ appimage.name }}/{{ appimage.filename }}"
|
|
to: "{{ path_bin }}/{{ appimage.name }}"
|
|
ansible.builtin.include_tasks: helpers/symlink.yml
|