Sha256: 074d5377c3a511a8e8f9ac82d7a4e370a8f8f13f2f0a4b6a764ee03afade20ff

Contents?: true

Size: 1.02 KB

Versions: 16

Compression:

Stored size: 1.02 KB

Contents

# file: postgresql/tasks/install.yml

- 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 | 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}}"

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
taperole-1.2.8 vendor/ANXS.postgresql/tasks/install.yml
taperole-1.2.7 vendor/ANXS.postgresql/tasks/install.yml
taperole-1.2.6 vendor/ANXS.postgresql/tasks/install.yml
taperole-1.2.5 vendor/ANXS.postgresql/tasks/install.yml
taperole-1.2.4 vendor/ANXS.postgresql/tasks/install.yml
taperole-1.2.3 vendor/ANXS.postgresql/tasks/install.yml
taperole-1.2.2 vendor/ANXS.postgresql/tasks/install.yml
taperole-1.2.1 vendor/ANXS.postgresql/tasks/install.yml
taperole-1.2.0 vendor/ANXS.postgresql/tasks/install.yml
taperole-1.1.5 vendor/ANXS.postgresql/tasks/install.yml
taperole-1.1.4 vendor/ANXS.postgresql/tasks/install.yml
taperole-1.1.3 vendor/ANXS.postgresql/tasks/install.yml
taperole-1.1.2 vendor/ANXS.postgresql/tasks/install.yml
taperole-1.1.1 vendor/ANXS.postgresql/tasks/install.yml
taperole-1.1.0 vendor/ANXS.postgresql/tasks/install.yml
taperole-1.0.1 vendor/ANXS.postgresql/tasks/install.yml