# vim: set filetype=yaml.ansible : --- - name: Install appimage {{ pkg }} 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) }}" 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 }}" 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 }}"