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