Skip to content
Snippets Groups Projects
Commit 24f02872 authored by ale's avatar ale
Browse files

Fix some Ansible 'changed' conditions

parent f66b2e14
No related branches found
No related tags found
No related merge requests found
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
file: file:
path: "/etc/bind/named.conf.zones" path: "/etc/bind/named.conf.zones"
state: touch state: touch
changed_when: false
- name: Generate infrastructural zone - name: Generate infrastructural zone
template: template:
......
...@@ -11,3 +11,5 @@ ...@@ -11,3 +11,5 @@
- name: Setup MariaDB replication - name: Setup MariaDB replication
command: "/usr/sbin/mariadb-replicator --defaults-file={{ mariadb_config }} --master-host={{ mariadb_master_host }} --master-port={{ mariadb_master_port }} --replication-user={{ mariadb_replication_user }} --replication-password={{ mariadb_replication_password }} {{ '--master' if mariadb_is_master else '--slave' }}" command: "/usr/sbin/mariadb-replicator --defaults-file={{ mariadb_config }} --master-host={{ mariadb_master_host }} --master-port={{ mariadb_master_port }} --replication-user={{ mariadb_replication_user }} --replication-password={{ mariadb_replication_password }} {{ '--master' if mariadb_is_master else '--slave' }}"
register: mariadb_replicator_result
changed_when: "mariadb_replicator_result.stdout != 'Nothing to do.'"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment