geerlingguy / ansible-role-mysql

Ansible Role - MySQL
https://galaxy.ansible.com/geerlingguy/mysql/
MIT License
1.05k stars 861 forks source link

Fix replication not starting. #511

Closed liammcdermott closed 1 year ago

liammcdermott commented 1 year ago

Fofllow-up to #503. That PR didn't include Is_Replica in its Start replication. task.

In addition I found that the previous logic of running Start replication. when not slave.Is_Slave would never start the replica, since slave.Is_Slave would evaluate to true. The reason being the replication is setup, it just hasn't been started yet, so this PR also fixes that.

giorgioma commented 1 year ago

Works for me