mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-06-14 22:36:09 +08:00
postgresql_server: dnf -> package, with_item changes
This commit is contained in:
committed by
Pierre-Yves Chibon
parent
7b165b6577
commit
65fc4a4ecc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user