2015-06-25 14:33:28 +00:00
|
|
|
---
|
2015-12-18 19:40:48 +00:00
|
|
|
- name: Ensuring config directories exist
|
|
|
|
file:
|
|
|
|
path: "{{ node_config_directory }}/{{ item }}"
|
|
|
|
state: "directory"
|
|
|
|
recurse: yes
|
|
|
|
with_items:
|
|
|
|
- "mariadb"
|
2015-08-27 16:18:17 -04:00
|
|
|
|
2015-12-18 19:40:48 +00:00
|
|
|
- name: Copying over config.json files for services
|
2015-08-27 16:18:17 -04:00
|
|
|
template:
|
2015-12-18 19:40:48 +00:00
|
|
|
src: "{{ item }}.json.j2"
|
|
|
|
dest: "{{ node_config_directory }}/{{ item }}/config.json"
|
|
|
|
with_items:
|
|
|
|
- "mariadb"
|
|
|
|
|
|
|
|
- name: Copying over galera.cnf
|
|
|
|
merge_configs:
|
|
|
|
vars:
|
|
|
|
service_name: "{{ item }}"
|
|
|
|
sources:
|
|
|
|
- "{{ role_path }}/templates/galera.cnf.j2"
|
2016-05-19 02:39:37 -04:00
|
|
|
- "{{ node_custom_config }}/galera.cnf"
|
|
|
|
- "{{ node_custom_config }}/mariadb/{{ inventory_hostname }}/galera.cnf"
|
2015-12-18 19:40:48 +00:00
|
|
|
dest: "{{ node_config_directory }}/{{ item }}/galera.cnf"
|
|
|
|
with_items:
|
|
|
|
- "mariadb"
|
2016-05-27 16:13:54 +02:00
|
|
|
|
2016-06-06 16:58:58 -07:00
|
|
|
- name: Copying over wsrep-notify.sh
|
2016-05-27 16:13:54 +02:00
|
|
|
template:
|
2016-06-06 16:58:58 -07:00
|
|
|
src: "{{ role_path }}/templates/wsrep-notify.sh.j2"
|
|
|
|
dest: "{{ node_config_directory }}/{{ item }}/wsrep-notify.sh"
|
2016-05-27 16:13:54 +02:00
|
|
|
with_items:
|
|
|
|
- "mariadb"
|