Fix the loop tasks.
This commit is contained in:
parent
7f52dbbe4f
commit
1d447c464a
|
@ -15,7 +15,7 @@
|
||||||
value: "{{ item.value }}"
|
value: "{{ item.value }}"
|
||||||
loop: '{{ psql_streaming_replication_config }}'
|
loop: '{{ psql_streaming_replication_config }}'
|
||||||
#when: postgresql_streaming_replication_primary_node == '{{ ansible_fqdn }}'
|
#when: postgresql_streaming_replication_primary_node == '{{ ansible_fqdn }}'
|
||||||
notify: Reload postgresql
|
notify: Restart postgresql
|
||||||
|
|
||||||
become: True
|
become: True
|
||||||
become_user: postgres
|
become_user: postgres
|
||||||
|
@ -31,8 +31,7 @@
|
||||||
address: '{{ item }}'
|
address: '{{ item }}'
|
||||||
method: 'scram-sha-256'
|
method: 'scram-sha-256'
|
||||||
state: present
|
state: present
|
||||||
loop:
|
loop: '{{ psql_streaming_replication_hosts }}'
|
||||||
- '{{ psql_streaming_replication_hosts }}'
|
|
||||||
notify: Reload postgresql
|
notify: Reload postgresql
|
||||||
when: ansible_distribution_file_variety == "Debian"
|
when: ansible_distribution_file_variety == "Debian"
|
||||||
tags: [ 'postgresql', 'postgres', 'pg_conf', 'pg_hba', 'postgresql_replication' ]
|
tags: [ 'postgresql', 'postgres', 'pg_conf', 'pg_hba', 'postgresql_replication' ]
|
||||||
|
@ -47,8 +46,7 @@
|
||||||
address: '{{ item }}'
|
address: '{{ item }}'
|
||||||
method: 'scram-sha-256'
|
method: 'scram-sha-256'
|
||||||
state: present
|
state: present
|
||||||
loop:
|
loop: '{{ psql_streaming_replication_hosts }}'
|
||||||
- '{{ psql_streaming_replication_hosts }}'
|
|
||||||
notify: Reload postgresql
|
notify: Reload postgresql
|
||||||
when: ansible_distribution_file_variety == "RedHat"
|
when: ansible_distribution_file_variety == "RedHat"
|
||||||
tags: [ 'postgresql', 'postgres', 'pg_conf', 'pg_hba', 'postgresql_replication' ]
|
tags: [ 'postgresql', 'postgres', 'pg_conf', 'pg_hba', 'postgresql_replication' ]
|
||||||
|
|
Loading…
Reference in New Issue