refactor: move shared Ansible tasks to ansible/tasks/

This commit is contained in:
2026-02-25 20:51:02 -06:00
parent 86708542c9
commit 7187dc8280
3 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
---
# Reusable task file for adding Technitium DNS entries
# This replaces the standalone playbook and can be imported into any playbook
# - name: Display cluster_name
# ansible.builtin.debug:
# msg: "{{ host_name }} - {{ ip_address }} - {{ vault_technitium_api_key }}"
- name: Create DNS A Record entry for {{ host_name }}
delegate_to: localhost
effectivelywild.technitium_dns.technitium_dns_add_record:
api_url: "http://{{ dns_server }}.{{ base_domain }}"
api_token: "{{ vault_technitium_api_key }}"
zone: "{{ base_domain }}"
name: "{{ host_name }}.{{ base_domain }}"
type: "A"
ipAddress: "{{ ip_address }}"
ptr: true
ttl: 360
validate_certs: false