From d90e2ea909f93064ac517205a439a7c9a3cfabce Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Sun, 3 Nov 2024 22:42:40 +0100 Subject: [PATCH] Fix regex. --- roles/role_deploy_nextcloud/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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