Sha256: 8c3a178b71197eaf28b63fa19520437dfb3c10ab5b64775ccbc98359e3b97a94

Contents?: true

Size: 1.04 KB

Versions: 38

Compression:

Stored size: 1.04 KB

Contents

---

- name: Create the necessary directories
  sudo: yes
  file:
    dest: "{{item}}"
    state: directory
    owner: "{{postgresql_admin_user}}"
    group: "{{postgresql_admin_group}}"
  with_items:
    - "{{postgresql_conf_directory}}"
    - "{{postgresql_data_directory}}"
    - "{{postgresql_runtime_directory}}"
    - "{{postgresql_log_directory}}"
  tags:
    - postgresql
    - db
    - conf

- name: Configure PostgreSQL
  sudo: yes
  template:
    src: "{{item}}"
    dest: "{{postgresql_conf_directory}}/{{item}}"
  with_items:
    - postgresql.conf
    - pg_ctl.conf
    - environment
  notify: restart postgresql
  tags:
    - postgresql
    - db
    - conf

- name: Configure PostgreSQL (authentication)
  sudo: yes
  template:
    src: pg_hba.conf
    dest: "{{postgresql_hba_file}}"
  notify: restart postgresql
  tags:
    - postgresql
    - db
    - conf

- name: Configure PostgreSQL (ident)
  sudo: yes
  template:
    src: pg_ident.conf
    dest: "{{postgresql_ident_file}}"
  notify: restart postgresql
  tags:
    - postgresql
    - db
    - conf

Version data entries

38 entries across 38 versions & 1 rubygems

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