postgresql_server: dnf -> package, with_item changes
This commit is contained in:
parent
7b165b6577
commit
65fc4a4ecc
1 changed files with 16 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue