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
|
- name: Show key files
|
||||||
debug:
|
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'] }}"
|
loop: "{{ key_file['results'] }}"
|
||||||
when:
|
when:
|
||||||
- "'.local' not in item['item']"
|
- "'.local' not in item['item']"
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
application_secret: "{{ ovh_application_secret }}"
|
application_secret: "{{ ovh_application_secret }}"
|
||||||
consumer_key: "{{ ovh_consumer_key }}"
|
consumer_key: "{{ ovh_consumer_key }}"
|
||||||
domain: "{{ item['item'] }}"
|
domain: "{{ item['item'] }}"
|
||||||
value: "{{ item['content'] | b64decode | regex_replace('^.*\\\"(.*)\\\".*$', '\\1') }}"
|
value: "{{ item['content'] | b64decode | regex_replace('^.*\\\"(.*)\\\".*$', '\\1', multiline=True) }}"
|
||||||
record_type: "DKIM"
|
record_type: "DKIM"
|
||||||
name: '_domainkey'
|
name: '_domainkey'
|
||||||
record_ttl: 10
|
record_ttl: 10
|
||||||
|
|
Loading…
Reference in a new issue