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.
|
# 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue