fix: Avoid regex_replace pattern duplication
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Danny Bessems 2023-07-28 13:23:59 +02:00
parent f5154f6961
commit 455a2e14be

View File

@ -3,7 +3,7 @@
- name: Inject password into values file - name: Inject password into values file
ansible.builtin.copy: ansible.builtin.copy:
dest: "{{ stepconfig.path }}" 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 no_log: true
- name: Install step-ca chart - name: Install step-ca chart