Revert "fix(playbooks): replace effectivelywild.technitium_dns collection with ansible.builtin.uri"
This reverts commit edfe594e7e.
This commit is contained in:
@@ -81,18 +81,15 @@
|
||||
|
||||
# ── Step 3: Create DNS CNAME records ──
|
||||
- name: Create DNS CNAME record for each hostname
|
||||
ansible.builtin.uri:
|
||||
url: "http://{{ dns_server }}.{{ base_domain }}:5380/api/zones/records/add\
|
||||
?token={{ vault_technitium_api_key }}\
|
||||
&domain={{ item }}\
|
||||
&type=CNAME\
|
||||
&cname=lightning-lane.{{ base_domain }}\
|
||||
&ttl=360"
|
||||
method: GET
|
||||
return_content: true
|
||||
status_code: 200
|
||||
register: dns_result
|
||||
failed_when: "(dns_result.json.status | default('error')) != 'ok'"
|
||||
effectivelywild.technitium_dns.technitium_dns_add_record:
|
||||
api_url: "http://{{ dns_server }}.{{ base_domain }}"
|
||||
api_token: "{{ vault_technitium_api_key }}"
|
||||
zone: "{{ base_domain }}"
|
||||
name: "{{ item }}"
|
||||
type: "CNAME"
|
||||
cname: "lightning-lane.{{ base_domain }}"
|
||||
ttl: 360
|
||||
validate_certs: false
|
||||
loop: "{{ hostnames }}"
|
||||
loop_control:
|
||||
label: "{{ item }}"
|
||||
|
||||
Reference in New Issue
Block a user