add option to set global access token
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
25e84bb012
commit
1558bd6d0b
@ -11,6 +11,8 @@ hcloud_server: {}
|
|||||||
# api_token: "{{ hcloud_server_api_token | default(omit) }}"
|
# api_token: "{{ hcloud_server_api_token | default(omit) }}"
|
||||||
# @end
|
# @end
|
||||||
|
|
||||||
|
# @var hcloud_server_default_api_token: $ "_unset_"
|
||||||
|
|
||||||
hcloud_server_volumes: []
|
hcloud_server_volumes: []
|
||||||
# @var hcloud_server_volumes:example: >
|
# @var hcloud_server_volumes:example: >
|
||||||
# hcloud_server_volumes:
|
# hcloud_server_volumes:
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
ssh_keys: "{{ hcloud_server.ssh_keys | default([]) }}"
|
ssh_keys: "{{ hcloud_server.ssh_keys | default([]) }}"
|
||||||
image: "{{ hcloud_server.image | default('centos-7') }}"
|
image: "{{ hcloud_server.image | default('centos-7') }}"
|
||||||
location: "{{ hcloud_server.location | default('nbg1') }}"
|
location: "{{ hcloud_server.location | default('nbg1') }}"
|
||||||
api_token: "{{ hcloud_server.api_token | default(omit) }}"
|
api_token: "{{ hcloud_server.api_token | default(hcloud_server_default_api_token | default(omit)) }}"
|
||||||
state: present
|
state: present
|
||||||
register: __hcloud_server
|
register: __hcloud_server
|
||||||
async: 7200
|
async: 7200
|
||||||
|
Loading…
Reference in New Issue
Block a user