Squash merge move_to_single_file_pkgs into main
This commit is contained in:
31
tasks/helpers/appimage.yml
Normal file
31
tasks/helpers/appimage.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- 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 }}"
|
||||
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
|
||||
Reference in New Issue
Block a user