forked from ANXS/postgresql
/
main.yml
34 lines (25 loc) · 839 Bytes
/
main.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
# file: postgresql/tasks/main.yml
- include_vars: "{{ item }}"
with_first_found:
- "../vars/{{ ansible_os_family }}.yml"
- "../vars/empty.yml"
tags: [always]
- include: install.yml
when: ansible_pkg_mgr == "apt"
tags: [postgresql, postgresql-install]
- include: install_yum.yml
when: ansible_pkg_mgr == "yum"
tags: [postgresql, postgresql-install]
- include: extensions.yml
tags: [postgresql, postgresql-extensions]
- include: configure.yml
tags: [postgresql, postgresql-configure]
- include: users.yml
tags: [postgresql, postgresql-users]
- include: databases.yml
tags: [postgresql, postgresql-databases]
- include: users_privileges.yml
tags: [postgresql, postgresql-users]
- include: monit.yml
when: monit_protection is defined and monit_protection == true
tags: [postgresql, postgresql-monit]