forked from mrlesmithjr/ansible-mariadb-galera-cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook.yml
34 lines (32 loc) · 825 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
---
- hosts: all
become: true
vars:
mariadb_pri_domain_name: "test.vagrant.local"
tasks:
- name: pre-reqs
dnf:
name: "{{ item }}"
state: present
with_items:
- python3-libselinux
when: >
(ansible_os_family == "RedHat" and
ansible_distribution == "Fedora")
- name: pre-reqs
yum:
name: "{{ item }}"
state: present
with_items:
- python3-libselinux
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: