Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jlozadad fix dependencies #327

Merged
merged 5 commits into from
Apr 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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