-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprovision.yml
More file actions
executable file
·53 lines (50 loc) · 1023 Bytes
/
Copy pathprovision.yml
File metadata and controls
executable file
·53 lines (50 loc) · 1023 Bytes
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
- name: Add records to /etc/hosts
hosts: all
become: True
gather_facts: False
vars_files:
- global_vars.yml
roles:
- role: add-entry-to-hosts
ip: '{{ master_ip }}'
dns: '{{ master_hostname }}'
- role: add-entry-to-hosts
ip: '{{ slave_ip }}'
dns: '{{ slave_hostname }}'
- role: add-entry-to-hosts
ip: '{{ backup_ip }}'
dns: '{{ backup_hostname }}'
- name: setup master
hosts: master
become: True
gather_facts: False
vars_files:
- global_vars.yml
roles:
- barman-repo
- postgres11-repo
- postgres11-server
- postgres11-master
- name: setup slave
hosts: slave
become: True
gather_facts: False
vars_files:
- global_vars.yml
roles:
- postgres11-repo
- postgres11-server
- postgres11-slave
- name: setup backup server
hosts: backup
become: True
gather_facts: False
vars_files:
- global_vars.yml
roles:
- epel
- postgres11-repo
- postgres11-client
- barman-repo
- barman