delegate tasks to localhost by default
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2020-05-12 22:23:53 +02:00
parent 37671d9023
commit c6094130c0
2 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,8 @@
# @end
# @var corenetworks_dns_default_zone: $ "_unset_"
corenetworks_dns_delegate_to: localhost
# @var corenetworks_dns_default_zone:example: >
# corenetworks_dns_records:
# - record: test

View File

@ -4,6 +4,7 @@
api_user: "{{ corenetworks_dns_api_user | default(omit) }}"
api_password: "{{ corenetworks_dns_api_password | default(omit) }}"
register: __corenetworks
delegate_to: "{{ corenetworks_dns_delegate_to }}"
- name: Create DNS records
corenetworks_dns:
@ -16,3 +17,4 @@
loop: corenetworks_dns_records + corenetworks_dns_records_extra
loop_control:
label: "{{ item.zone }}:{{ item.record | default('@') }}"
delegate_to: "{{ corenetworks_dns_delegate_to }}"