diff --git a/roles/role_deploy_nextcloud/tasks/main.yml b/roles/role_deploy_nextcloud/tasks/main.yml index 88895b0..679ecbe 100644 --- a/roles/role_deploy_nextcloud/tasks/main.yml +++ b/roles/role_deploy_nextcloud/tasks/main.yml @@ -8,7 +8,7 @@ failed_when: "result_nextcloud_systemd_stop is failed and 'Could not find the requested service' not in result_nextcloud_systemd_stop.msg" - name: Check if nextcloud container is running - command: 'podman ps -q --filter "name=nextcloud"' + command: 'podman ps -q --filter "name=^nextcloud$"' changed_when: false register: podman_ps become: true