Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mysql role failing with empty hostname error #539

Closed
Manju-1195 opened this issue May 7, 2024 · 1 comment
Closed

Mysql role failing with empty hostname error #539

Manju-1195 opened this issue May 7, 2024 · 1 comment

Comments

@Manju-1195
Copy link

Manju-1195 commented May 7, 2024

Hi,

I'm trying to install latest version of mysql on an ubuntu machine(Version 22.04) using geerlingguy.mysql role.
However the role fails with below error

TASK [geerlingguy.mysql : Check master replication status.] *********************************************************************************************************************************************************
fatal: [] > {{ mysql_replication_master_inventory_host }}]: FAILED! => {"msg": "Empty hostname produced from delegate_to: \"{{ mysql_replication_master_inventory_host }}\""}

Below is the variable file that's defined.

mysql_databases:
  - name: "{{ database }}"
    state: present
mysql_users:
  - name: "{{ name }}"
    password: "{{ password }}"
    priv: "{{ name }}.*:ALL"
    state: present

I've not enabled replication, so not sure why the variable mysql_replication_master_inventory_host is checked. Mysql is installed successfully but the replication tasks fail.

Any input here will be really helpful.
Thanks!

@Manju-1195
Copy link
Author

Please ignore :) I was using version 4.3.3 and upgrading it to the latest version 4.3.4 solved the issue.
Closing the case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant