diff --git a/playbooks/mattermost.yaml b/playbooks/mattermost.yaml index 96c81c0..c6afd0f 100644 --- a/playbooks/mattermost.yaml +++ b/playbooks/mattermost.yaml @@ -9,7 +9,7 @@ tasks: - name: Have mattermost allready installed stat: - path: /usr/local/bin/mattermost + path: /usr/local/bin/mattermost-desktop register: have_mattermost - name: Download mattermost package ansible.builtin.command: @@ -25,6 +25,7 @@ ansible.builtin.command: chdir: /tmp cmd: bash -c "mv mattermost-desktop-* /opt/mattermost-desktop" + creates: /opt/mattermost-desktop become: true when: not have_mattermost.stat.exists - name: install mattermost desktop link