Adjust package lists per Debian version
This commit is contained in:
parent
b33096202e
commit
10a1754285
|
@ -1,13 +1,25 @@
|
||||||
---
|
---
|
||||||
- name: install patroni packages via apt
|
- set_fact:
|
||||||
apt:
|
package_list:
|
||||||
name:
|
|
||||||
- python3-psycopg2
|
- python3-psycopg2
|
||||||
- python-psycopg2
|
|
||||||
- python3-kazoo
|
- python3-kazoo
|
||||||
|
- python-psycopg2
|
||||||
- python-kazoo
|
- python-kazoo
|
||||||
- patroni
|
- patroni
|
||||||
- postgresql-11
|
- postgresql-11
|
||||||
|
when: debian_version|int <= 10
|
||||||
|
|
||||||
|
- set_fact:
|
||||||
|
package_list:
|
||||||
|
- python3-psycopg2
|
||||||
|
- python3-kazoo
|
||||||
|
- patroni
|
||||||
|
- postgresql-11
|
||||||
|
when: debian_version|int >= 11
|
||||||
|
|
||||||
|
- name: install patroni packages via apt
|
||||||
|
apt:
|
||||||
|
name: "{{ package_list }}"
|
||||||
state: latest
|
state: latest
|
||||||
update-cache: yes
|
update-cache: yes
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue