vn-ansible/roles/nsupdate/tasks/main.yml

13 lines
381 B
YAML

- name: Add or modify DNS records A to some IP
community.general.nsupdate:
key_name: "rndc-key"
key_secret: "{{ rndc_key }}"
key_algorithm: "hmac-md5"
server: "ns1.verdnatura.es"
zone: "{{ zone_record }}"
record: "{{ name_record }}"
ttl: "{{ ttl_record }}"
type: "{{ type_record }}"
value: "{{ value_record }}"
state: "{{ state_record }}"