# vim: set filetype=yaml.ansible : --- - name: Install bitwarden appimage become: "{{ bw_become }}" become_user: "{% if bw_become %}{{ bw_owner }}{% else %}~{% endif %}" when: - bw_instmtd == 'appimage' block: - name: Ensure install path exists ansible.builtin.file: state: directory mode: '0755' path: "{{ apimage_pfx }}/bitwarden" owner: "{{ bw_owner }}" group: "{{ bw_group }}" - name: Fetch bitwarden appimage ansible.builtin.get_url: mode: '0755' decompress: false backup: true url: "{{ bw.appimg.url }}" dest: "{{ appimage_pfx }}/{{ bw.appimg.name }}" owner: "{{ bw_owner }}" group: "{{ bw_group }}" - name: Link bitwarden appimage ansible.builtin.file: state: link src: "{{ appimage_pfx }}/{{ bw.appimg.name }}" path: "{{ bw.bindir }}/bitwarden"