add option to obtain api token only once
This commit is contained in:
parent
af81eb4d20
commit
675f4db8f5
@ -13,6 +13,8 @@
|
||||
# @end
|
||||
# @var corenetworks_dns_default_zone: $ "_unset_"
|
||||
|
||||
corenetworks_dns_token_run_once: False
|
||||
|
||||
corenetworks_dns_pip: "pip{{ ansible_python.version.major }}"
|
||||
|
||||
corenetworks_dns_delegate_to: localhost
|
||||
|
@ -15,6 +15,7 @@
|
||||
register: __corenetworks
|
||||
when: corenetworks_dns_token is not defined
|
||||
delegate_to: "{{ corenetworks_dns_delegate_to }}"
|
||||
run_once: "{{ corenetworks_dns_token_run_once }}"
|
||||
|
||||
- name: Create DNS records
|
||||
corenetworks_dns:
|
||||
|
Loading…
Reference in New Issue
Block a user