Skip to content

Commit

Permalink
Merge pull request #327 from jlozadad/jlozadad_fix_dependencies
Browse files Browse the repository at this point in the history
Jlozadad fix dependencies
  • Loading branch information
Jonathan Lozada D authored Apr 8, 2018
2 parents 2ca71e4 + 6cf279b commit 9ae74d4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
8 changes: 6 additions & 2 deletions tasks/extensions/dev_headers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@
- restart postgresql

- name: PostgreSQL | Extensions | Make sure the development headers are installed | RedHat
yum: "name={{ item }} state=present update_cache=yes"
yum:
name: "{{ item }}"
state: present
update_cache: yes
with_items:
- "postgresql{{ postgresql_version_terse }}-libs"
- "postgresql{{ postgresql_version_terse }}-devel"
when: ansible_os_family == "RedHat"
notify:
- restart postgresql
- restart postgresql with service
- restart postgresql with systemd
11 changes: 2 additions & 9 deletions tasks/install_yum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,16 @@
# validate www.postgresql.org (or probably any other source).

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

- name: PostgreSQL | Add PostgreSQL repository
yum:
name: "{{ postgresql_yum_repository_url }}"
state: present

- name: PostgreSQL | Make sure the dependencies are installed
yum:
name: "{{ item }}"
state: present
update_cache: yes
with_items: ["python-psycopg2", "python-pycurl", "glibc-common", "libselinux-python"]

- name: PostgreSQL | Install PostgreSQL
yum:
name: "{{ item }}"
Expand Down

0 comments on commit 9ae74d4

Please sign in to comment.