From 2fdfee97cbcbe1bca60eaeb2bafd642f54810e1b Mon Sep 17 00:00:00 2001 From: hannahms <36494235+hannahms@users.noreply.github.com> Date: Sun, 19 Feb 2023 16:17:24 -0500 Subject: [PATCH] update repmgr role --- roles/setup_repmgr/defaults/main.yml | 1 + roles/setup_repmgr/tasks/exchange_ssh_keys.yml | 4 ++-- roles/setup_repmgr/tasks/generate_ssh_keys.yml | 2 +- tests/config.yml | 1 + 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/roles/setup_repmgr/defaults/main.yml b/roles/setup_repmgr/defaults/main.yml index 4a09f0eea..3a5bb96ab 100644 --- a/roles/setup_repmgr/defaults/main.yml +++ b/roles/setup_repmgr/defaults/main.yml @@ -56,3 +56,4 @@ supported_pg_version: - 12 - 13 - 14 + - 15 diff --git a/roles/setup_repmgr/tasks/exchange_ssh_keys.yml b/roles/setup_repmgr/tasks/exchange_ssh_keys.yml index 81a8e7b6c..12b1c5cdd 100644 --- a/roles/setup_repmgr/tasks/exchange_ssh_keys.yml +++ b/roles/setup_repmgr/tasks/exchange_ssh_keys.yml @@ -36,7 +36,7 @@ path: "{{ pg_user_home + '/.ssh/authorized_keys' }}" owner: "{{ pg_owner }}" group: "{{ pg_group }}" - mode: 0600 + mode: '0600' line: "{{ _local_ssh_public_key }}" create: true delegate_to: "{{ remote_node.inventory_hostname }}" @@ -47,7 +47,7 @@ path: "{{ pg_user_home + '/.ssh/authorized_keys' }}" owner: "{{ pg_owner }}" group: "{{ pg_group }}" - mode: 0600 + mode: '0600' line: "{{ _remote_server_ssh_public_key }}" create: true diff --git a/roles/setup_repmgr/tasks/generate_ssh_keys.yml b/roles/setup_repmgr/tasks/generate_ssh_keys.yml index bb8674f9b..aaaa19fb2 100644 --- a/roles/setup_repmgr/tasks/generate_ssh_keys.yml +++ b/roles/setup_repmgr/tasks/generate_ssh_keys.yml @@ -4,7 +4,7 @@ path: "{{ pg_user_home }}/.ssh" owner: "{{ pg_owner }}" group: "{{ pg_group }}" - mode: 0700 + mode: '0700' become: true - name: Check if the SSH private key exists diff --git a/tests/config.yml b/tests/config.yml index f521e89f7..59908f00c 100644 --- a/tests/config.yml +++ b/tests/config.yml @@ -264,6 +264,7 @@ cases: - 12 - 13 - 14 + - 15 pg_type: - PG os: