forked from piwi3910/ansible-mariadb-galera-cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
playbook.yml
36 lines (34 loc) · 879 Bytes
/
playbook.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
- hosts: all
become: true
vars:
mariadb_pri_domain_name: 'test.vagrant.local'
roles:
- role: ansible-etc-hosts
tasks:
- name: pre-reqs
dnf:
name: "{{ item }}"
state: present
with_items:
- libselinux-python
when: >
(ansible_os_family == "RedHat" and
ansible_distribution == "Fedora")
- name: pre-reqs
yum:
name: "{{ item }}"
state: present
with_items:
- libselinux-python
when: >
(ansible_os_family == "RedHat" and
ansible_distribution != "Fedora")
- hosts: galera-cluster-nodes
become: true
vars:
galera_cluster_bind_address: '{{ ansible_eth1.ipv4.address }}' #'{{ ansible_enp0s8.ipv4.address }}'
mariadb_pri_domain_name: 'test.vagrant.local'
roles:
- role: ansible-mariadb-galera-cluster
tasks: