vn-ansible/roles/config-nsupdate/tasks/main.yaml

20 lines
814 B
YAML
Raw Normal View History

2024-05-22 15:04:42 +00:00
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Configure zones on bind9 with NSUPDATE
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Add and update DNS records on bind9 with NSUPDATE
- name: Add or modify DNS records A to some IP
2024-05-24 11:13:56 +00:00
community.general.nsupdate:
2024-05-22 15:04:42 +00:00
key_name: "rndc-key"
key_secret: "{{ bind9secretkey_password }}"
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 }}"
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++