Sha256: 40d4670d722d7cbcda459721d4b3472d8944a5d4bd7a65bf6588a9604a3b9024

Contents?: true

Size: 1.72 KB

Versions: 7

Compression:

Stored size: 1.72 KB

Contents

# file: postgresql/tasks/install.yml

# The standard ca-certs are needed because  without them apt_key will fail to
# validate www.postgresql.org (or probably any other source).
- name: PostgreSQL | Make sure the CA certificates are available
  apt:
    pkg: ca-certificates
    state: present

- name: PostgreSQL | Add PostgreSQL repository apt-key
  apt_key:
    id: "{{ postgresql_apt_key_id }}"
    url: "{{ postgresql_apt_key_url }}"
    state: present
  when: postgresql_apt_key_url and postgresql_apt_key_id

- name: PostgreSQL | Add PostgreSQL repository
  apt_repository:
    repo: "{{ postgresql_apt_repository }}"
    state: present
  when: postgresql_apt_repository

- name: PostgreSQL | Add PostgreSQL repository preferences
  template:
    src: etc_apt_preferences.d_apt_postgresql_org_pub_repos_apt.pref.j2
    dest: /etc/apt/preferences.d/apt_postgresql_org_pub_repos_apt.pref
  when: postgresql_apt_pin_priority

- name: PostgreSQL | Make sure the dependencies are installed
  apt:
    pkg: "{{item}}"
    state: present
    update_cache: yes
    cache_valid_time: "{{apt_cache_valid_time | default (3600)}}"
  with_items: ["python-psycopg2", "python-pycurl", "locales"]

- name: PostgreSQL | Install PostgreSQL
  apt:
    name: "{{item}}"
    state: present
    update_cache: yes
    cache_valid_time: "{{apt_cache_valid_time | default (3600)}}"
  environment: postgresql_env
  with_items:
    - "postgresql-{{postgresql_version}}"
    - "postgresql-client-{{postgresql_version}}"
    - "postgresql-contrib-{{postgresql_version}}"

- name: PostgreSQL | PGTune
  apt:
    name: pgtune
    state: present
    update_cache: yes
    cache_valid_time: "{{apt_cache_valid_time | default (3600)}}"
  environment: postgresql_env
  when: postgresql_pgtune

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
taperole-1.3.6 vendor/ANXS.postgresql/tasks/install.yml
taperole-1.3.5 vendor/ANXS.postgresql/tasks/install.yml
taperole-1.3.4 vendor/ANXS.postgresql/tasks/install.yml
taperole-1.3.3 vendor/ANXS.postgresql/tasks/install.yml
taperole-1.3.2 vendor/ANXS.postgresql/tasks/install.yml
taperole-1.3.1 vendor/ANXS.postgresql/tasks/install.yml
taperole-1.3.0 vendor/ANXS.postgresql/tasks/install.yml