fix regex

This commit is contained in:
Antonio J. Delgado 2023-09-18 20:34:53 +03:00
parent cc6b770bbf
commit 9ff6744a60

View file

@ -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