-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall-database-system.yml
24 lines (22 loc) · 1.15 KB
/
install-database-system.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
---
#* This playbook wrapps the debops.postgresql (for now) Ansible role
# to install and manage the PostgreSQL DB server.
#* Use '-a' to pass parameters to ansible (as '-e'). See ansible fetch for
#* details.
#* Check the following link for a list of possible configuration variables:
#* https://docs.debops.org/en/latest/ansible/roles/ansible-postgresql/docs/defaults.html
#* No arguments are mandatory.
- name: Install PostgreSQL Server
hosts: app.postgresql.server
become: True
vars:
app__postgresql__s_pkg: '{{ os__pkg_name.postgresql[os__short] | d(os__pkg_name.postgresql[os__distro]) }}'
app__postgresql__c_pkg: '{{ os__pkg_name.postgresql_client[os__short] | d(os__pkg_name.postgresql_client[os__distro]) }}'
app__postgresql__yapkg__names: '{{ app__postgresql__s_pkg }} + {{ app__postgresql__c_pkg }}'
roles:
- install-postgresql
- name: Install PostgreSQL Client
hosts: app.postgresql.client,!app.postgresql.server
become: True
roles:
- { role: inofix.yapkg, yapkg__task_group_name: 'the postgres db client', yapkg__names: '{{ os__pkg_name.postgresql_client[os__short] | d(os__pkg_name.postgresql_client[os__distro]) }}' }