geerlingguy / ansible-role-mysql

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

Update replication.yml to use "| default(omit, true)" for delegate_to #533

Closed pgehres closed 9 months ago

pgehres commented 9 months ago

Looks like this was a change in ansible-core 2.16 which results in an error like

fatal: [10.63.4.102 -> {{ mysql_replication_master }}]: FAILED! => {"msg": "Supplied entity must be Host or Group, got <class 'ansible.inventory.host.Host'> instead"}

Adding the suggested fix per https://github.com/ansible/ansible/issues/82264

geerlingguy commented 9 months ago

This has been fixed in https://github.com/geerlingguy/ansible-role-mysql/pull/532 - thanks!