diff --git a/ansible/roles/mariadb/handlers/main.yml b/ansible/roles/mariadb/handlers/main.yml index 2e74012878..fcc04f767b 100644 --- a/ansible/roles/mariadb/handlers/main.yml +++ b/ansible/roles/mariadb/handlers/main.yml @@ -53,6 +53,7 @@ image: "{{ service.image }}" volumes: "{{ service.volumes }}" when: + - action != "config" - inventory_hostname != master_host - inventory_hostname in groups[service.group] - service.enabled | bool @@ -78,6 +79,7 @@ retries: 10 delay: 6 when: + - action != "config" - inventory_hostname != master_host - name: restart master mariadb @@ -92,6 +94,7 @@ image: "{{ service.image }}" volumes: "{{ service.volumes }}" when: + - action != "config" - inventory_hostname == master_host - inventory_hostname in groups[service.group] - service.enabled | bool @@ -117,4 +120,5 @@ retries: 10 delay: 6 when: + - action != "config" - inventory_hostname == master_host