Sha256: 09028ae3cd74d9608c346610928512fe2dbba0848cea3cefaab8daecddbb36e4

Contents?: true

Size: 1.05 KB

Versions: 38

Compression:

Stored size: 1.05 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'
  sudo: 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'
  sudo: 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'
  sudo: yes
  apt:
    name: "postgresql-{{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'
  sudo: yes
  apt:
    name: "{{item}}"
    state: latest
  with_items:
    - python-psycopg2
  tags:
    - postgresql
    - db
    - deps

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
subspace-2.1.2 ansible/roles/zenoamaro.postgresql/tasks/install.yml
subspace-2.1.1 ansible/roles/zenoamaro.postgresql/tasks/install.yml
subspace-2.1.0 ansible/roles/zenoamaro.postgresql/tasks/install.yml
subspace-2.0.4 ansible/roles/zenoamaro.postgresql/tasks/install.yml
subspace-2.0.3 ansible/roles/zenoamaro.postgresql/tasks/install.yml
subspace-2.0.2 ansible/roles/zenoamaro.postgresql/tasks/install.yml
subspace-2.0.1 ansible/roles/zenoamaro.postgresql/tasks/install.yml
subspace-2.0.0 ansible/roles/zenoamaro.postgresql/tasks/install.yml
subspace-1.0.8 ansible/roles/zenoamaro.postgresql/tasks/install.yml
subspace-1.0.7 ansible/roles/zenoamaro.postgresql/tasks/install.yml
subspace-1.0.6 ansible/roles/zenoamaro.postgresql/tasks/install.yml
subspace-1.0.5 ansible/roles/zenoamaro.postgresql/tasks/install.yml
subspace-1.0.4 ansible/roles/zenoamaro.postgresql/tasks/install.yml
subspace-1.0.3 ansible/roles/zenoamaro.postgresql/tasks/install.yml
subspace-1.0.2 ansible/roles/zenoamaro.postgresql/tasks/install.yml
subspace-1.0.1 ansible/roles/zenoamaro.postgresql/tasks/install.yml
subspace-1.0.0 ansible/roles/zenoamaro.postgresql/tasks/install.yml
subspace-0.6.17 ansible/roles/zenoamaro.postgresql/tasks/install.yml
subspace-0.6.16 ansible/roles/zenoamaro.postgresql/tasks/install.yml
subspace-0.6.15 ansible/roles/zenoamaro.postgresql/tasks/install.yml