Skip to content

Commit 2ea4297

Browse files
author
Jonathan Lozada D
committed
added all the required dependencies together and deleted a tasks. Make less transactions
1 parent 5b74cee commit 2ea4297

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

tasks/install_yum.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,16 @@
44
# validate www.postgresql.org (or probably any other source).
55

66
- block:
7-
- name: PostgreSQL | Make sure the CA certificates are available
7+
- name: PostgreSQL | Install all the required dependencies
88
yum:
9-
name: ca-certificates
9+
name: ["ca-certificates","python-psycopg2", "python-pycurl", "glibc-common","epel-release"]
1010
state: present
1111

1212
- name: PostgreSQL | Add PostgreSQL repository
1313
yum:
1414
name: "{{ postgresql_yum_repository_url }}"
1515
state: present
1616

17-
- name: PostgreSQL | Make sure the dependencies are installed
18-
yum:
19-
name: "{{ item }}"
20-
state: present
21-
update_cache: yes
22-
with_items: ["python-psycopg2", "python-pycurl", "glibc-common"]
23-
2417
- name: PostgreSQL | Install PostgreSQL
2518
yum:
2619
name: "{{ item }}"

0 commit comments

Comments
 (0)