# 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: "{{ bw_instdir }}" 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: "{{ bw_instdir }}/{{ bw_appimg.name }}" owner: "{{ bw_owner }}" group: "{{ bw_group }}" - name: Link bitwarden appimage ansible.builtin.file: state: link src: "{{ bw_instdir }}/{{ bw_appimg.name }}" path: "{{ bw_instpfx }}/bin/bitwarden"