show regex
This commit is contained in:
parent
1fe09ab2c0
commit
b46b683477
1 changed files with 5 additions and 4 deletions
|
@ -5,9 +5,10 @@
|
||||||
register: key_file
|
register: key_file
|
||||||
loop: "{{ mail_domains }}"
|
loop: "{{ mail_domains }}"
|
||||||
|
|
||||||
# - name: Show key files
|
- name: Show key files
|
||||||
# debug:
|
debug:
|
||||||
# var: key_file
|
msg: "{{ item['content'] | b64decode | regex_replace('^.*\"(.*)\".*$', '\\1') }}"
|
||||||
|
loop: "{{ key_file['results'] }}"
|
||||||
|
|
||||||
- name: Add DKIM key record for domain
|
- name: Add DKIM key record for domain
|
||||||
synthesio.ovh.domain:
|
synthesio.ovh.domain:
|
||||||
|
@ -16,7 +17,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