add optional api_token attribute to all hcloud tasks
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
313dbcdac0
commit
eeef387127
@ -36,6 +36,7 @@
|
|||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
server: "{{ hcloud_server.name }}"
|
server: "{{ hcloud_server.name }}"
|
||||||
size: "{{ item.size | default(10) }}"
|
size: "{{ item.size | default(10) }}"
|
||||||
|
api_token: "{{ item.api_token | default(hcloud_server_default_api_token | default(omit)) }}"
|
||||||
state: "{{ item.state | default('present') }}"
|
state: "{{ item.state | default('present') }}"
|
||||||
loop: "{{ hcloud_server_volumes }}"
|
loop: "{{ hcloud_server_volumes }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
@ -47,6 +48,7 @@
|
|||||||
server: "{{ hcloud_server.name }}"
|
server: "{{ hcloud_server.name }}"
|
||||||
ip_address: "{{ item.addr }}"
|
ip_address: "{{ item.addr }}"
|
||||||
dns_ptr: "{{ item.ptr }}"
|
dns_ptr: "{{ item.ptr }}"
|
||||||
|
api_token: "{{ item.api_token | default(hcloud_server_default_api_token | default(omit)) }}"
|
||||||
state: "{{ item.state | default('present') }}"
|
state: "{{ item.state | default('present') }}"
|
||||||
loop: "{{ hcloud_server_rdns }}"
|
loop: "{{ hcloud_server_rdns }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
|
Loading…
Reference in New Issue
Block a user