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 ──
|
# ── Step 3: Create DNS CNAME records ──
|
||||||
- name: Create DNS CNAME record for each hostname
|
- name: Create DNS CNAME record for each hostname
|
||||||
ansible.builtin.uri:
|
effectivelywild.technitium_dns.technitium_dns_add_record:
|
||||||
url: "http://{{ dns_server }}.{{ base_domain }}:5380/api/zones/records/add\
|
api_url: "http://{{ dns_server }}.{{ base_domain }}"
|
||||||
?token={{ vault_technitium_api_key }}\
|
api_token: "{{ vault_technitium_api_key }}"
|
||||||
&domain={{ item }}\
|
zone: "{{ base_domain }}"
|
||||||
&type=CNAME\
|
name: "{{ item }}"
|
||||||
&cname=lightning-lane.{{ base_domain }}\
|
type: "CNAME"
|
||||||
&ttl=360"
|
cname: "lightning-lane.{{ base_domain }}"
|
||||||
method: GET
|
ttl: 360
|
||||||
return_content: true
|
validate_certs: false
|
||||||
status_code: 200
|
|
||||||
register: dns_result
|
|
||||||
failed_when: "(dns_result.json.status | default('error')) != 'ok'"
|
|
||||||
loop: "{{ hostnames }}"
|
loop: "{{ hostnames }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item }}"
|
label: "{{ item }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user