diff --git a/defaults/main.yml b/defaults/main.yml index ea08ec0..0b7e928 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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" diff --git a/tasks/configure.yml b/tasks/configure.yml index df43464..21c3b42 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -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. diff --git a/tasks/main.yml b/tasks/main.yml index 42d58fc..922ab92 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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