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:
@@ -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
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
---
|
||||
d_yapkg__names:
|
||||
default__yapkg__names:
|
||||
- postgresql
|
||||
- python-psycopg2
|
||||
|
||||
@@ -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) }}'
|
||||
|
||||
Reference in New Issue
Block a user