Commit 7e107bf4 by Filippo Panessa

Use yaml format

parent e851fead
......@@ -15,18 +15,18 @@
when: not mariadb_bootstrap.stat.exists
- name: setup bootstrap on primary
lineinfile: >
dest="/etc/mysql/conf.d/galera.cnf"
regexp="^wsrep_cluster_address=gcomm://{{ groups[group_names[0]]|sort|join(',') }}$"
line="wsrep_cluster_address=gcomm://"
lineinfile:
dest: "/etc/mysql/conf.d/galera.cnf"
regexp: "^wsrep_cluster_address=gcomm://{{ groups[group_names[0]]|sort|join(',') }}$"
line: "wsrep_cluster_address=gcomm://"
when: inventory_hostname == hostvars[groups[group_names[0]][0]].inventory_hostname and not mariadb_bootstrap.stat.exists
- name: fetch debian.cnf file so start-stop will work properly
fetch: >
src=/etc/mysql/debian.cnf
dest=/tmp/debian.cnf
fail_on_missing=yes
flat=yes
fetch:
src: "/etc/mysql/debian.cnf"
dest: "/tmp/debian.cnf"
fail_on_missing: yes
flat: yes
when: inventory_hostname == hostvars[groups[group_names[0]][0]].inventory_hostname and not mariadb_bootstrap.stat.exists
register: mariadb_new_debian_cnf
......@@ -53,9 +53,9 @@
# This is needed for mysql-check in haproxy or other mysql monitor
# scripts to prevent haproxy checks exceeding `max_connect_errors`.
- name: create haproxy monitor user
mysql_user: >
name={{ MARIADB_HAPROXY_USER }}
host={{ item }}
password=""
state=present
mysql_user:
name: "{{ MARIADB_HAPROXY_USER }}"
host: "{{ item }}"
password: ""
state: present
with_items: MARIADB_HAPROXY_HOSTS
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment