This commit is contained in:
parent
9fdc72106a
commit
4eb3631ae3
@ -12,13 +12,13 @@
|
|||||||
- name: Create DNS records
|
- name: Create DNS records
|
||||||
udm_dns_record:
|
udm_dns_record:
|
||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
zone: "{{ item.zone | default('ucs_dns_default_zone') }}"
|
zone: "{{ item.zone | default(ucs_dns_default_zone) }}"
|
||||||
type: "{{ item.type | default('host_record') }}"
|
type: "{{ item.type | default('host_record') }}"
|
||||||
data: "{{ item.value | default(omit) }}"
|
data: "{{ item.value | default(omit) }}"
|
||||||
state: "{{ item.state | default('present') }}"
|
state: "{{ item.state | default('present') }}"
|
||||||
loop: "{{ ucs_dns_records + ucs_dns_records_extra }}"
|
loop: "{{ ucs_dns_records + ucs_dns_records_extra }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.zone | default('ucs_dns_default_zone') }}:{{ item.name }}"
|
label: "{{ item.zone | default(ucs_dns_default_zone) }}:{{ item.name }}"
|
||||||
delegate_to: "{{ ucs_dns_delegate_to }}"
|
delegate_to: "{{ ucs_dns_delegate_to }}"
|
||||||
become: True
|
become: True
|
||||||
become_user: root
|
become_user: root
|
||||||
|
Loading…
Reference in New Issue
Block a user