This commit is contained in:
vincent 2023-10-31 20:10:51 +01:00
parent efff1db096
commit a7c1478d15
3 changed files with 10 additions and 7 deletions

View File

@ -53,7 +53,7 @@ postgresql_databases: []
# state: # defaults to 'present'
# Users to ensure exist.
postgresql_users:
postgresql_users:
# - name: jdoe #required; the rest are optional
# password: # defaults to not set
# encrypted: # defaults to not set
@ -69,3 +69,6 @@ postgresql_users:
# Whether to output user data when managing users.
postgres_users_no_log: true
postgres_consul_service: false
postgres_consul_service_name: postgress
postgres_consul_tag: "active"

View File

@ -7,7 +7,7 @@
state: "{{ item.state | default('present') }}"
mode: 0644
with_items: "{{ postgresql_global_config_options }}"
notify: restart postgresql
notify: Restart postgresql
- name: Configure host based authentication (if entries are configured).
template:
@ -16,7 +16,7 @@
owner: "{{ postgresql_user }}"
group: "{{ postgresql_group }}"
mode: 0600
notify: restart postgresql
notify: Restart postgresql
when: postgresql_hba_entries | length > 0
- name: Ensure PostgreSQL unix socket dirs exist.

View File

@ -1,9 +1,9 @@
---
# Variable configuration.
- include_tasks: variables.yml
- name: Variable configuration.
include_tasks: variables.yml
# Setup/install tasks.
- include_tasks: setup-RedHat.yml
- name: Setup/install tasks.
include_tasks: setup-RedHat.yml
when: ansible_os_family == 'RedHat'
- include_tasks: setup-Debian.yml