1
0
mirror of https://github.com/inofix/common-playbooks.git synced 2026-02-05 12:45:29 +01:00

Postgres Packages

Move package logic down to the role level.
This commit is contained in:
Michael Lustenberger
2025-06-28 00:41:48 +02:00
parent 89640e695c
commit 4a94f84d3e
3 changed files with 4 additions and 6 deletions

View File

@@ -10,10 +10,6 @@
- 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

View File

@@ -1,4 +1,4 @@
---
d_yapkg__names:
default__yapkg__names:
- postgresql
- python-psycopg2

View File

@@ -1,2 +1,4 @@
---
postgresql__yapkg__names: '{{ app__postgresql__yapkg__names | d(d_yapkg__names) }}'
postgresql__s_pkg: '{{ os__pkg_name.postgresql[os__short] | d(os__pkg_name.postgresql[os__distro]) }}'
postgresql__c_pkg: '{{ os__pkg_name.postgresql_client[os__short] | d(os__pkg_name.postgresql_client[os__distro]) }}'
postgresql__yapkg__names: '{{ postgresql__s_pkg + postgresql__c_pkg | d(default__yapkg__names) }}'