diff --git a/roles/role_deploy_SemanticScuttle/tasks/main.yml b/roles/role_deploy_SemanticScuttle/tasks/main.yml index 598fa56..42b0329 100644 --- a/roles/role_deploy_SemanticScuttle/tasks/main.yml +++ b/roles/role_deploy_SemanticScuttle/tasks/main.yml @@ -8,7 +8,7 @@ failed_when: "result_apache_scuttle_systemd_stop is failed and 'Could not find the requested service' not in result_apache_scuttle_systemd_stop.msg" - name: Check if apache-scuttle container is running - command: 'podman ps -q --filter "name=apache-scuttle"' + command: 'podman ps -q --filter "name=^apache-scuttle$"' changed_when: false register: podman_ps become: true @@ -27,7 +27,7 @@ failed_when: "result_php5_fpm_systemd_stop is failed and 'Could not find the requested service' not in result_php5_fpm_systemd_stop.msg" - name: Check if php5-fpm container is running - command: 'podman ps -q --filter "name=php5-fpm"' + command: 'podman ps -q --filter "name=^php5-fpm$"' changed_when: false register: podman_ps become: true diff --git a/roles/role_deploy_cron/tasks/main.yml b/roles/role_deploy_cron/tasks/main.yml index 8623320..fa8e889 100644 --- a/roles/role_deploy_cron/tasks/main.yml +++ b/roles/role_deploy_cron/tasks/main.yml @@ -8,7 +8,7 @@ failed_when: "result_global_cron_systemd_stop is failed and 'Could not find the requested service' not in result_global_cron_systemd_stop.msg" - name: Check if global-cron container is running - command: 'podman ps -q --filter "name=global-cron"' + command: 'podman ps -q --filter "name=^global-cron$"' changed_when: false register: podman_ps become: true diff --git a/roles/role_deploy_dovecot/tasks/main.yml b/roles/role_deploy_dovecot/tasks/main.yml index 03a0cec..0b57a3e 100644 --- a/roles/role_deploy_dovecot/tasks/main.yml +++ b/roles/role_deploy_dovecot/tasks/main.yml @@ -8,7 +8,7 @@ failed_when: "result_dovecot_systemd_stop is failed and 'Could not find the requested service' not in result_dovecot_systemd_stop.msg" - name: Check if dovecot container is running - command: 'podman ps -q --filter "name=dovecot"' + command: 'podman ps -q --filter "name=^dovecot$"' changed_when: false register: podman_ps become: true diff --git a/roles/role_deploy_feed2imap/tasks/main.yml b/roles/role_deploy_feed2imap/tasks/main.yml index 447dac3..53ef206 100644 --- a/roles/role_deploy_feed2imap/tasks/main.yml +++ b/roles/role_deploy_feed2imap/tasks/main.yml @@ -8,7 +8,7 @@ failed_when: "result_feed2imap_systemd_stop is failed and 'Could not find the requested service' not in result_feed2imap_systemd_stop.msg" - name: Check if feed2imap container is running - command: 'podman ps -q --filter "name=feed2imap"' + command: 'podman ps -q --filter "name=^feed2imap$"' changed_when: false register: podman_ps become: true diff --git a/roles/role_deploy_gitea/tasks/main.yml b/roles/role_deploy_gitea/tasks/main.yml index 97f842b..b122655 100644 --- a/roles/role_deploy_gitea/tasks/main.yml +++ b/roles/role_deploy_gitea/tasks/main.yml @@ -8,7 +8,7 @@ failed_when: "result_gitea_systemd_stop is failed and 'Could not find the requested service' not in result_gitea_systemd_stop.msg" - name: Check if gitea container is running - command: 'podman ps -q --filter "name=gitea"' + command: 'podman ps -q --filter "name=^gitea$"' changed_when: false register: podman_ps become: true diff --git a/roles/role_deploy_internal_named/tasks/main.yml b/roles/role_deploy_internal_named/tasks/main.yml index 120de6a..71f7a22 100644 --- a/roles/role_deploy_internal_named/tasks/main.yml +++ b/roles/role_deploy_internal_named/tasks/main.yml @@ -8,7 +8,7 @@ failed_when: "result_internal_named_systemd_stop is failed and 'Could not find the requested service' not in result_internal_named_systemd_stop.msg" - name: Check if internal_named container is running - command: 'podman ps -q --filter "name=internal_named"' + command: 'podman ps -q --filter "name=^internal_named$"' changed_when: false register: podman_ps become: true diff --git a/roles/role_deploy_onlyoffice/tasks/main.yml b/roles/role_deploy_onlyoffice/tasks/main.yml index e70c6f8..982b22d 100644 --- a/roles/role_deploy_onlyoffice/tasks/main.yml +++ b/roles/role_deploy_onlyoffice/tasks/main.yml @@ -8,7 +8,7 @@ failed_when: "result_onlyoffice_document_server_systemd_stop is failed and 'Could not find the requested service' not in result_onlyoffice_document_server_systemd_stop.msg" - name: Check if onlyoffice-document-server container is running - command: 'podman ps -q --filter "name=onlyoffice-document-server"' + command: 'podman ps -q --filter "name=^onlyoffice-document-server$"' changed_when: false register: podman_ps become: true diff --git a/roles/role_deploy_registry/tasks/main.yml b/roles/role_deploy_registry/tasks/main.yml index 40cd2d2..1e36ae7 100644 --- a/roles/role_deploy_registry/tasks/main.yml +++ b/roles/role_deploy_registry/tasks/main.yml @@ -8,7 +8,7 @@ failed_when: "result_registry_systemd_stop is failed and 'Could not find the requested service' not in result_registry_systemd_stop.msg" - name: Check if registry container is running - command: 'podman ps -q --filter "name=registry"' + command: 'podman ps -q --filter "name=^registry$"' changed_when: false register: podman_ps become: true diff --git a/roles/role_deploy_store-metrics-in-db/tasks/main.yml b/roles/role_deploy_store-metrics-in-db/tasks/main.yml index 0b99014..79986bf 100644 --- a/roles/role_deploy_store-metrics-in-db/tasks/main.yml +++ b/roles/role_deploy_store-metrics-in-db/tasks/main.yml @@ -8,7 +8,7 @@ failed_when: "result_store_metrics_in_db_systemd_stop is failed and 'Could not find the requested service' not in result_store_metrics_in_db_systemd_stop.msg" - name: Check if store-metrics-in-db container is running - command: 'podman ps -q --filter "name=store-metrics-in-db"' + command: 'podman ps -q --filter "name=^store-metrics-in-db$"' changed_when: false register: podman_ps become: true