diff --git a/ansible/roles/mysql-replication/tasks/main.yaml b/ansible/roles/mysql-replication/tasks/main.yaml index bd0cbe3..73117cd 100644 --- a/ansible/roles/mysql-replication/tasks/main.yaml +++ b/ansible/roles/mysql-replication/tasks/main.yaml @@ -57,7 +57,7 @@ master_log_pos: "{{ hostvars['web1'].repl_stat.Position }}" master_user: "{{ mysql.replication_user }}" master_password: "{{ mysql_replication_pass }}" - when: ansible_hostname in mysql.replication_slaves + when: ansible_hostname in mysql.replication_slaves and not slave.Is_Slave - name: Start slave replication community.mysql.mysql_replication: