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