I want to update my MYSQL user using ansible-playbook.
What I tried:
I checked out the MySQL module doc but there is no option to update the hostname of a user.
https://docs.ansible.com/ansible/latest/modules/mysql_user_module.html#parameter-host_all
Expected result:
User updated with the new hostname.
Current Ansible PlayBook: I want to update user1's hostname
- name: Create database user with name 'app' and password with all database privileges for host patientApp-02
mysql_user:
login_user: root
login_password: ellora
name: user1
password: user1password
host: hostname
priv: '*.*:ALL'
state: present