ANXS / postgresql

Fairly full featured Ansible role for Postgresql.
http://anxs.io/
MIT License
848 stars 571 forks source link

debian/ubuntu dev packages #278

Open JasperAlgra opened 6 years ago

JasperAlgra commented 6 years ago

Hi,

For installation of some other package i'm missing the postgresql-server-dev-(version) on debian. Currently adding it via the playbook but not ideal when changing postgres versions.

Probaly as simple by replacing line 5 in dev_headers.yml with:

apt: "name={{ item }} state=present update_cache=yes"
  with_items:
    - "postgresql{{ postgresql_version_terse }}-libs"
    - "postgresql{{ postgresql_version_terse }}-devel"
aoyawale commented 6 years ago

need to fix the rhel part on the bottom too

aoyawale commented 6 years ago

the rhel/centos/ fedora part has been fixed.

aoyawale commented 6 years ago

are the packages for this on debian named the same?

JasperAlgra commented 6 years ago

On debian/ubuntu:

I've did:

- name: PostgreSQL | Extensions | Make sure the development headers are installed | Debian
  apt:
    name: "{{item}}"
    state: present
    update_cache: yes
    cache_valid_time: "{{apt_cache_valid_time | default (3600)}}"
  with_items:
    - libpq-dev
    - "postgresql-server-dev-{{ postgresql_version }}"
  when: ansible_os_family == "Debian"
  notify:
    - restart postgresql
github-actions[bot] commented 1 week ago

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!