Update roles/postgres/tasks/main.yml
This commit is contained in:
@@ -18,13 +18,14 @@
|
||||
pg_version: "{{ pg_version_dirs.files | map(attribute='path') | map('basename') | sort | last }}"
|
||||
|
||||
- name: Detect cluster name
|
||||
command: "pg_lsclusters --no-header | awk '{print $2}' | head -n1"
|
||||
shell: "pg_lsclusters --no-header | awk '{print $2}' | head -n1"
|
||||
register: pg_cluster_name
|
||||
changed_when: false
|
||||
|
||||
- set_fact:
|
||||
pg_cluster: "{{ pg_cluster_name.stdout }}"
|
||||
|
||||
|
||||
- name: Define PostgreSQL cluster path
|
||||
set_fact:
|
||||
pg_cluster_path: "/etc/postgresql/{{ pg_version }}/{{ pg_cluster }}"
|
||||
|
||||
Reference in New Issue
Block a user