escape quotes
This commit is contained in:
parent
b46b683477
commit
34aa317bb6
1 changed files with 5 additions and 2 deletions
|
@ -7,8 +7,11 @@
|
||||||
|
|
||||||
- name: Show key files
|
- name: Show key files
|
||||||
debug:
|
debug:
|
||||||
msg: "{{ item['content'] | b64decode | regex_replace('^.*\"(.*)\".*$', '\\1') }}"
|
msg: "{{ item['content'] | b64decode | regex_replace('^.*\\\"(.*)\\\".*$', '\\1') }}"
|
||||||
loop: "{{ key_file['results'] }}"
|
loop: "{{ key_file['results'] }}"
|
||||||
|
when:
|
||||||
|
- "'.local' not in item['item']"
|
||||||
|
- item['item'] | regex_findall('\.') | length == 1
|
||||||
|
|
||||||
- name: Add DKIM key record for domain
|
- name: Add DKIM key record for domain
|
||||||
synthesio.ovh.domain:
|
synthesio.ovh.domain:
|
||||||
|
@ -17,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') }}"
|
||||||
record_type: "DKIM"
|
record_type: "DKIM"
|
||||||
name: '_domainkey'
|
name: '_domainkey'
|
||||||
record_ttl: 10
|
record_ttl: 10
|
||||||
|
|
Loading…
Reference in a new issue