tco.dns : delete and add record works
This commit is contained in:
16
tasks/main.yml
Normal file
16
tasks/main.yml
Normal 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 }}"
|
||||
|
||||
Reference in New Issue
Block a user