delegate tasks to localhost by default
This commit is contained in:
parent
37671d9023
commit
c6094130c0
@ -13,6 +13,8 @@
|
|||||||
# @end
|
# @end
|
||||||
# @var corenetworks_dns_default_zone: $ "_unset_"
|
# @var corenetworks_dns_default_zone: $ "_unset_"
|
||||||
|
|
||||||
|
corenetworks_dns_delegate_to: localhost
|
||||||
|
|
||||||
# @var corenetworks_dns_default_zone:example: >
|
# @var corenetworks_dns_default_zone:example: >
|
||||||
# corenetworks_dns_records:
|
# corenetworks_dns_records:
|
||||||
# - record: test
|
# - record: test
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
api_user: "{{ corenetworks_dns_api_user | default(omit) }}"
|
api_user: "{{ corenetworks_dns_api_user | default(omit) }}"
|
||||||
api_password: "{{ corenetworks_dns_api_password | default(omit) }}"
|
api_password: "{{ corenetworks_dns_api_password | default(omit) }}"
|
||||||
register: __corenetworks
|
register: __corenetworks
|
||||||
|
delegate_to: "{{ corenetworks_dns_delegate_to }}"
|
||||||
|
|
||||||
- name: Create DNS records
|
- name: Create DNS records
|
||||||
corenetworks_dns:
|
corenetworks_dns:
|
||||||
@ -16,3 +17,4 @@
|
|||||||
loop: corenetworks_dns_records + corenetworks_dns_records_extra
|
loop: corenetworks_dns_records + corenetworks_dns_records_extra
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.zone }}:{{ item.record | default('@') }}"
|
label: "{{ item.zone }}:{{ item.record | default('@') }}"
|
||||||
|
delegate_to: "{{ corenetworks_dns_delegate_to }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user