-
Notifications
You must be signed in to change notification settings - Fork 0
/
prerequisite.yml
54 lines (45 loc) · 1.27 KB
/
prerequisite.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
## CHILD PLAY - PREREQUISITE FOR POSTGRESQL ##
- hosts: "{{ cluster_name }}"
remote_user: "{{ rmt_user }}"
become: yes
any_errors_fatal: yes
gather_facts: yes
tasks:
- import_role:
name: cfg-no-selinux
tags: cfg-no-selinux
- import_role:
name: cfg-pg-os-user
tags: cfg-pg-os-user
- import_role:
name: cfg-hosts-file
when: pg_type == "REPLICA"
tags: cfg-hosts-file
- import_role:
name: add-known-hosts
when: pg_type == "REPLICA"
become_user: "{{ pg_os_user }}"
tags: add-known-hosts
- name: "Setting the parameter of the hosts and user for the ssh-nopass"
set_fact:
dest_hosts_users_nopass: "{{ dest_hosts_users_nopass|default([]) + \
[{ 'host': item, 'user': pg_os_user }] }}"
loop: "{{ ansible_play_batch }}"
when: pg_type == "REPLICA"
tags: cfg-ssh-nopass
- import_role:
name: cfg-ssh-nopass
when: pg_type == "REPLICA"
become_user: "{{ pg_os_user }}"
tags: cfg-ssh-nopass
- import_role:
name: prep-dirs
tags: prep-dirs
- import_role:
name: inst-pg-rpms
tags: inst-pg-rpms
- import_role:
name: cfg-pg-srv
tags: cfg-pg-srv
...