fix regex
This commit is contained in:
parent
34aa317bb6
commit
cc6b770bbf
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
- name: Show key files
|
||||
debug:
|
||||
msg: "{{ item['content'] | b64decode | regex_replace('^.*\\\"(.*)\\\".*$', '\\1') }}"
|
||||
msg: "{{ item['content'] | b64decode | regex_replace('^.*\\\"(.*)\\\".*$', '\\1', multiline=True) | regex_replace('[\\s\\n\\t\\\"]*', '', multiline=True)}}"
|
||||
loop: "{{ key_file['results'] }}"
|
||||
when:
|
||||
- "'.local' not in item['item']"
|
||||
|
@ -20,7 +20,7 @@
|
|||
application_secret: "{{ ovh_application_secret }}"
|
||||
consumer_key: "{{ ovh_consumer_key }}"
|
||||
domain: "{{ item['item'] }}"
|
||||
value: "{{ item['content'] | b64decode | regex_replace('^.*\\\"(.*)\\\".*$', '\\1') }}"
|
||||
value: "{{ item['content'] | b64decode | regex_replace('^.*\\\"(.*)\\\".*$', '\\1', multiline=True) }}"
|
||||
record_type: "DKIM"
|
||||
name: '_domainkey'
|
||||
record_ttl: 10
|
||||
|
|
Loading…
Reference in a new issue