forked from evolix/ansible-roles
Add modification for buster and postgresql 11 requirements
This commit is contained in:
parent
26dd244ae0
commit
eb81c69327
|
@ -4,7 +4,10 @@
|
||||||
when: ansible_distribution_release == "jessie"
|
when: ansible_distribution_release == "jessie"
|
||||||
|
|
||||||
- include: packages_stretch.yml
|
- include: packages_stretch.yml
|
||||||
when: ansible_distribution_major_version | version_compare('9', '>=')
|
when: ansible_distribution_major_version | version_compare('9', '=')
|
||||||
|
|
||||||
|
- include: packages_buster.yml
|
||||||
|
when: ansible_distribution_major_version | version_compare('10', '>=')
|
||||||
|
|
||||||
- include: config.yml
|
- include: config.yml
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
postgresql_user:
|
postgresql_user:
|
||||||
name: nrpe
|
name: nrpe
|
||||||
password: '{{ postgresql_nrpe_password.stdout }}'
|
password: '{{ postgresql_nrpe_password.stdout }}'
|
||||||
|
encrypted: yes
|
||||||
no_password_changes: yes
|
no_password_changes: yes
|
||||||
register: postgresql_create_nrpe_user
|
register: postgresql_create_nrpe_user
|
||||||
when: nrpe_evolix_config.stat.exists
|
when: nrpe_evolix_config.stat.exists
|
||||||
|
|
8
postgresql/tasks/packages_buster.yml
Normal file
8
postgresql/tasks/packages_buster.yml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: Install postgresql package
|
||||||
|
apt:
|
||||||
|
name: '{{item}}'
|
||||||
|
with_items:
|
||||||
|
- postgresql
|
||||||
|
- libdbd-pg-perl
|
Loading…
Reference in a new issue