tco.dns : delete and add record works

This commit is contained in:
2023-10-04 15:15:11 +02:00
commit 8270ba251c
8 changed files with 155 additions and 0 deletions

16
tasks/main.yml Normal file
View File

@@ -0,0 +1,16 @@
---
# tasks file for tco.dns
- name: manage dns record
vars:
state: "{{ (dns_action == 'delete' ) | ternary( 'absent', 'present' ) }}"
ansible714.ovh.dns:
ovh_api_endpoint: "{{ ovh_api_endpoint }}"
ovh_api_application_key: "{{ ovh_api_application_key }}"
ovh_api_application_secret: "{{ ovh_api_application_secret }}"
ovh_api_consumer_key: "{{ ovh_api_consumer_key }}"
zone: "{{ dns_zone }}"
record_name: "{{ record_name }}"
record_value: "{{ record_value }}"
record_type: "{{ record_type }}"
state: "{{ state }}"