Sha256: 6e80cd736884fcc06d81470aaf3059a8fa9f508611a51c640c78653e0dfef4d1

Contents?: true

Size: 1.05 KB

Versions: 33

Compression:

Stored size: 1.05 KB

Contents

---

- name: Create the necessary directories
  become: 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
  become: 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)
  become: yes
  template:
    src: pg_hba.conf
    dest: "{{postgresql_hba_file}}"
  notify: restart postgresql
  tags:
    - postgresql
    - db
    - conf

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

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
subspace-3.0.12 ansible/roles/zenoamaro.postgresql/tasks/configure.yml
subspace-3.0.11 ansible/roles/zenoamaro.postgresql/tasks/configure.yml
subspace-3.0.10 ansible/roles/zenoamaro.postgresql/tasks/configure.yml
subspace-3.0.9 ansible/roles/zenoamaro.postgresql/tasks/configure.yml
subspace-3.0.6 ansible/roles/zenoamaro.postgresql/tasks/configure.yml
subspace-3.0.5 ansible/roles/zenoamaro.postgresql/tasks/configure.yml
subspace-3.0.4 ansible/roles/zenoamaro.postgresql/tasks/configure.yml
subspace-3.0.3 ansible/roles/zenoamaro.postgresql/tasks/configure.yml
subspace-3.0.2 ansible/roles/zenoamaro.postgresql/tasks/configure.yml
subspace-3.0.0 ansible/roles/zenoamaro.postgresql/tasks/configure.yml
subspace-2.5.10 ansible/roles/zenoamaro.postgresql/tasks/configure.yml
subspace-3.0.0.rc1 ansible/roles/zenoamaro.postgresql/tasks/configure.yml
subspace-2.5.9 ansible/roles/zenoamaro.postgresql/tasks/configure.yml
subspace-2.5.8 ansible/roles/zenoamaro.postgresql/tasks/configure.yml
subspace-2.5.7 ansible/roles/zenoamaro.postgresql/tasks/configure.yml
subspace-2.5.6 ansible/roles/zenoamaro.postgresql/tasks/configure.yml
subspace-2.5.5 ansible/roles/zenoamaro.postgresql/tasks/configure.yml
subspace-2.5.4 ansible/roles/zenoamaro.postgresql/tasks/configure.yml
subspace-2.5.3 ansible/roles/zenoamaro.postgresql/tasks/configure.yml
subspace-2.5.2 ansible/roles/zenoamaro.postgresql/tasks/configure.yml