From 720bc435466bc1721a050791828816f75522aa48 Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Tue, 24 Oct 2023 09:28:24 +0200 Subject: [PATCH] fix: Switch ansible module --- ansible/roles/assets/tasks/manifests.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ansible/roles/assets/tasks/manifests.yml b/ansible/roles/assets/tasks/manifests.yml index 47ef0c7..18736c8 100644 --- a/ansible/roles/assets/tasks/manifests.yml +++ b/ansible/roles/assets/tasks/manifests.yml @@ -119,9 +119,10 @@ until: pinniped_manifest is not failed - name: Trim image hash from manifest - ansible.builtin.copy: - dest: /opt/metacluster/pinniped/local-user-authenticator.yaml - content: "{{ lookup('ansible.builtin.file', '/opt/metacluster/pinniped/local-user-authenticator.yaml') | regex_replace('([ ]*image: .*)@.*', '\\1') }}" + ansible.builtin.replace: + path: /opt/metacluster/pinniped/local-user-authenticator.yaml + regex: '([ ]*image: .*)@.*' + replace: '\\1' no_log: true # - name: Inject manifests