adding dnf support to the postgresql_server role
This commit is contained in:
parent
2b8a65a15d
commit
f19c5ff77d
1 changed files with 14 additions and 1 deletions
|
@ -2,13 +2,26 @@
|
||||||
#
|
#
|
||||||
# Setup postgresql server.
|
# Setup postgresql server.
|
||||||
#
|
#
|
||||||
- name: install postgresql server packages
|
- name: install postgresql server packages (yum)
|
||||||
yum: name={{ item }} state=present
|
yum: name={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- postgresql-server
|
- postgresql-server
|
||||||
- postgresql-contrib
|
- postgresql-contrib
|
||||||
- postgresql-plpython
|
- postgresql-plpython
|
||||||
- python-psycopg2
|
- python-psycopg2
|
||||||
|
when: ansible_distribution_major_version|int < 22
|
||||||
|
tags:
|
||||||
|
- packages
|
||||||
|
- postgresql
|
||||||
|
|
||||||
|
- name: install postgresql server packages (dnf)
|
||||||
|
yum: name={{ item }} state=present
|
||||||
|
with_items:
|
||||||
|
- postgresql-server
|
||||||
|
- postgresql-contrib
|
||||||
|
- postgresql-plpython
|
||||||
|
- python-psycopg2
|
||||||
|
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
- postgresql
|
- postgresql
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue