From 9ff6744a60393403ae20f65cfed8405f5179550d Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Mon, 18 Sep 2023 20:34:53 +0300 Subject: [PATCH] fix regex --- tasks/configure_ovh.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/configure_ovh.yml b/tasks/configure_ovh.yml index 8f9e702..9160cb2 100644 --- a/tasks/configure_ovh.yml +++ b/tasks/configure_ovh.yml @@ -20,7 +20,7 @@ application_secret: "{{ ovh_application_secret }}" consumer_key: "{{ ovh_consumer_key }}" domain: "{{ item['item'] }}" - value: "{{ item['content'] | b64decode | regex_replace('^.*\\\"(.*)\\\".*$', '\\1', multiline=True) }}" + value: "{{ item['content'] | b64decode | regex_replace('^.*\\\"(.*)\\\".*$', '\\1', multiline=True) | regex_replace('[\\s\\n\\t\\\"]*', '', multiline=True)}}" record_type: "DKIM" name: '_domainkey' record_ttl: 10