From 74af14a43760e59ae4563cb359cacb38423ddff4 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 6 Apr 2021 14:24:13 +0200 Subject: [PATCH] Fix a typo. --- tasks/postgresql-streaming-replication.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tasks/postgresql-streaming-replication.yml b/tasks/postgresql-streaming-replication.yml index bea64b9..8a02328 100644 --- a/tasks/postgresql-streaming-replication.yml +++ b/tasks/postgresql-streaming-replication.yml @@ -2,8 +2,6 @@ - name: Configuration of the streaming replication block: - name: Create the replication user - become: True - become_user: postgres postgresql_user: name: '{{ psql_streaming_replication_user }}' role_attr_flags: "REPLICATION" @@ -12,14 +10,15 @@ state: present - name: Setup the streaming replication on the primary - become: True - become_user: postgres postgresql_set: name: '{{ item.name }}' value: "{{ item.value }}" loop: '{{ psql_streaming_replication_config }}' #when: postgresql_streaming_replication_primary_node == '{{ ansible_fqdn }}' notify: Reload postgresql + + become: True + become_user: postgres tags: [ 'postgresql', 'postgres', 'pg_conf', 'postgresql_replication' ] - name: Configure the streaming replication user on deb systems @@ -36,7 +35,7 @@ - '{{ psql_streaming_replication_hosts }}' notify: Reload postgresql 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 block: