From 455a2e14becbf690575b9409c1fa0251425b6864 Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Fri, 28 Jul 2023 13:23:59 +0200 Subject: [PATCH] fix: Avoid regex_replace pattern duplication --- .../bootstrap/roles/metacluster/tasks/certauthority.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/firstboot/files/ansible_payload/bootstrap/roles/metacluster/tasks/certauthority.yml b/ansible/roles/firstboot/files/ansible_payload/bootstrap/roles/metacluster/tasks/certauthority.yml index f4cc70a..9bfadf8 100644 --- a/ansible/roles/firstboot/files/ansible_payload/bootstrap/roles/metacluster/tasks/certauthority.yml +++ b/ansible/roles/firstboot/files/ansible_payload/bootstrap/roles/metacluster/tasks/certauthority.yml @@ -3,7 +3,7 @@ - name: Inject password into values file ansible.builtin.copy: dest: "{{ stepconfig.path }}" - content: "{{ lookup('ansible.builtin.file', stepconfig.path) | regex_replace('(ca_password|provisioner_password): ', '\\1: ' ~ (vapp['metacluster.password'] | b64encode)) }}" + content: "{{ lookup('ansible.builtin.file', stepconfig.path) | regex_replace('(ca_password|provisioner_password):[ ]?\n', '\\1: ' ~ (vapp['metacluster.password'] | b64encode) ~ '\n') }}" no_log: true - name: Install step-ca chart