Add OVH management to mail server
This commit is contained in:
parent
f621c9527c
commit
1fe09ab2c0
3 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
---
|
||||
create_ovh_dkim_entry: true
|
||||
dkim_selector: default
|
||||
ovh_application_key: "{{ vault_ovh_api_key }}"
|
||||
ovh_application_secret: "{{ vault_ovh_api_secret }}"
|
||||
ovh_consumer_key: '{{ vault_ovh_consumer_key }}'
|
||||
ovh_endpoint: 'ovh-eu'
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
record_ttl: 10
|
||||
append: true
|
||||
loop: "{{ key_file['results'] }}"
|
||||
delegate_to: ovh_management[0]
|
||||
when:
|
||||
- "'.local' not in item['item']"
|
||||
- item['item'] | regex_findall('\.') | length == 1
|
||||
|
|
|
@ -4,3 +4,8 @@
|
|||
name:
|
||||
- opendkim
|
||||
- opendkim-tools
|
||||
|
||||
- name: Ensure OVH python module is installed
|
||||
ansible.builtin.pip:
|
||||
name: ovh
|
||||
when: create_ovh_dkim_entry
|
||||
|
|
Loading…
Reference in a new issue