Sha256: 10b6148ecbe14149936f3afa1b480064ecb0da798534595163821746bf896c12

Contents?: true

Size: 1.06 KB

Versions: 4

Compression:

Stored size: 1.06 KB

Contents

---
# Official PostgreSQL [repository] for debian-based distributions
# [repository]: http://www.postgresql.org/download/
- name: Adding APT repository key
  when: ansible_os_family == 'Debian'
  become: yes
  apt_key:
    id: ACCC4CF8
    url: https://www.postgresql.org/media/keys/ACCC4CF8.asc
  tags:
    - postgresql
    - db
    - repo

- name: Add PostgreSQL official APT repository
  when: ansible_os_family == 'Debian'
  become: yes
  apt_repository:
    repo: "deb http://apt.postgresql.org/pub/repos/apt/ {{ansible_distribution_release}}-pgdg main"
  tags:
    - postgresql
    - db
    - repo

- name: Install PostgreSQL
  when: ansible_os_family == 'Debian'
  become: yes
  apt:
    name: "postgresql-client-{{postgresql_version}}"
    state: present
    update_cache: yes
    cache_valid_time: 3600
  tags:
    - postgresql
    - db
    - deps

- name: Install dependencies for the Ansible module
  when: ansible_os_family == 'Debian'
  become: yes
  apt:
    name: "{{item}}"
    state: latest
  with_items:
    - python-psycopg2
  tags:
    - postgresql
    - db
    - deps

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
subspace-2.2.3 ansible/roles/postgresql-client/tasks/main.yml
subspace-2.2.2 ansible/roles/postgresql-client/tasks/main.yml
subspace-2.2.1 ansible/roles/postgresql-client/tasks/main.yml
subspace-2.2.0 ansible/roles/postgresql-client/tasks/main.yml