diff options
Diffstat (limited to 'ansible/roles/mariadb/tasks/lookup_cluster.yml')
| -rw-r--r-- | ansible/roles/mariadb/tasks/lookup_cluster.yml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ansible/roles/mariadb/tasks/lookup_cluster.yml b/ansible/roles/mariadb/tasks/lookup_cluster.yml index fefc9d325..efca14ee0 100644 --- a/ansible/roles/mariadb/tasks/lookup_cluster.yml +++ b/ansible/roles/mariadb/tasks/lookup_cluster.yml @@ -2,13 +2,13 @@ - name: Cleaning up temp file on localhost local_action: file path=/tmp/kolla_mariadb_cluster state=absent changed_when: False - always_run: True + check_mode: no run_once: True - name: Creating temp file on localhost local_action: copy content=None dest=/tmp/kolla_mariadb_cluster mode=0644 changed_when: False - always_run: True + check_mode: no run_once: True - name: Creating mariadb volume @@ -21,7 +21,7 @@ - name: Writing hostname of host with existing cluster files to temp file local_action: copy content={{ ansible_hostname }} dest=/tmp/kolla_mariadb_cluster mode=0644 changed_when: False - always_run: True + check_mode: no when: not mariadb_volume | changed - name: Registering host from temp file @@ -31,5 +31,5 @@ - name: Cleaning up temp file on localhost local_action: file path=/tmp/kolla_mariadb_cluster state=absent changed_when: False - always_run: True + check_mode: no run_once: True |
