postgresql_server: dnf -> package, with_item changes

This commit is contained in:
Karsten Hopp 2019-06-11 17:10:06 +02:00 committed by Pierre-Yves Chibon
parent 7b165b6577
commit 65fc4a4ecc

View file

@ -3,26 +3,28 @@
# Setup postgresql server.
#
- name: install postgresql server packages (yum)
package: name={{ item }} state=present
with_items:
- postgresql-server
- postgresql-contrib
- postgresql-plpython
- python-psycopg2
- pxz
package:
state: present
name:
- postgresql-server
- postgresql-contrib
- postgresql-plpython
- python-psycopg2
- pxz
when: ansible_distribution_major_version|int < 22
tags:
- packages
- postgresql
- name: install postgresql server packages (dnf)
dnf: name={{ item }} state=present
with_items:
- postgresql-server
- postgresql-contrib
- postgresql-plpython
- python-psycopg2
- pxz
package:
state: present
name:
- postgresql-server
- postgresql-contrib
- postgresql-plpython
- python-psycopg2
- pxz
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
tags:
- packages