Skip to content
Snippets Groups Projects
Commit 156ff746 authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

Merge branch 'mysqlfix' into 'master'

bugfix inventory-hostname will be the sql node whereas item is the shortname of the mgmt nodes

See merge request !436
parents cf0ed411 1a1d4833
No related branches found
No related tags found
1 merge request!436bugfix inventory-hostname will be the sql node whereas item is the shortname of the mgmt nodes
...@@ -56,8 +56,8 @@ ...@@ -56,8 +56,8 @@
mysql_user: name={{ mysql_user_name }} host={{ hostvars[item].ansible_fqdn }} password={{ mysql_user_password }} login_user=root login_password={{ mysql_root_password }} priv={{ mysql_user_db_name }}.*:ALL,GRANT state=present mysql_user: name={{ mysql_user_name }} host={{ hostvars[item].ansible_fqdn }} password={{ mysql_user_password }} login_user=root login_password={{ mysql_root_password }} priv={{ mysql_user_db_name }}.*:ALL,GRANT state=present
with_items: "{{ mysql_user_hosts_group }}" with_items: "{{ mysql_user_hosts_group }}"
when: mysql_user_hosts_group is defined when: mysql_user_hosts_group is defined
- name: "Giving priviliges to user with shortname" - name: "Giving priviliges to user with shortname"
mysql_user: name={{ mysql_user_name }} host={{ inventory_hostname }} password={{ mysql_user_password }} login_user=root login_password={{ mysql_root_password }} priv={{ mysql_user_db_name }}.*:ALL,GRANT state=present mysql_user: name={{ mysql_user_name }} host={{ item }} password={{ mysql_user_password }} login_user=root login_password={{ mysql_root_password }} priv={{ mysql_user_db_name }}.*:ALL,GRANT state=present
with_items: "{{ mysql_user_hosts_group }}" with_items: "{{ mysql_user_hosts_group }}"
when: mysql_user_hosts_group is defined when: mysql_user_hosts_group is defined
...@@ -51,4 +51,4 @@ ...@@ -51,4 +51,4 @@
with_items: "{{ mysql_user_hosts_group }}" with_items: "{{ mysql_user_hosts_group }}"
when: mysql_user_hosts_group is defined when: mysql_user_hosts_group is defined
become: true become: true
become_user: root become_user: root
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment