Fix a typo.
This commit is contained in:
parent
5f6bf2bfa8
commit
74af14a437
|
@ -2,8 +2,6 @@
|
||||||
- name: Configuration of the streaming replication
|
- name: Configuration of the streaming replication
|
||||||
block:
|
block:
|
||||||
- name: Create the replication user
|
- name: Create the replication user
|
||||||
become: True
|
|
||||||
become_user: postgres
|
|
||||||
postgresql_user:
|
postgresql_user:
|
||||||
name: '{{ psql_streaming_replication_user }}'
|
name: '{{ psql_streaming_replication_user }}'
|
||||||
role_attr_flags: "REPLICATION"
|
role_attr_flags: "REPLICATION"
|
||||||
|
@ -12,14 +10,15 @@
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Setup the streaming replication on the primary
|
- name: Setup the streaming replication on the primary
|
||||||
become: True
|
|
||||||
become_user: postgres
|
|
||||||
postgresql_set:
|
postgresql_set:
|
||||||
name: '{{ item.name }}'
|
name: '{{ item.name }}'
|
||||||
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: Reload postgresql
|
||||||
|
|
||||||
|
become: True
|
||||||
|
become_user: postgres
|
||||||
tags: [ 'postgresql', 'postgres', 'pg_conf', 'postgresql_replication' ]
|
tags: [ 'postgresql', 'postgres', 'pg_conf', 'postgresql_replication' ]
|
||||||
|
|
||||||
- name: Configure the streaming replication user on deb systems
|
- name: Configure the streaming replication user on deb systems
|
||||||
|
@ -36,7 +35,7 @@
|
||||||
- '{{ 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' ]
|
||||||
|
|
||||||
- name: Configure the streaming replication user on EL
|
- name: Configure the streaming replication user on EL
|
||||||
block:
|
block:
|
||||||
|
|
Loading…
Reference in New Issue