add option to set global access token
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2020-05-17 20:43:29 +02:00
parent 25e84bb012
commit 1558bd6d0b
2 changed files with 3 additions and 1 deletions

View File

@ -11,6 +11,8 @@ hcloud_server: {}
# api_token: "{{ hcloud_server_api_token | default(omit) }}"
# @end
# @var hcloud_server_default_api_token: $ "_unset_"
hcloud_server_volumes: []
# @var hcloud_server_volumes:example: >
# hcloud_server_volumes:

View File

@ -6,7 +6,7 @@
ssh_keys: "{{ hcloud_server.ssh_keys | default([]) }}"
image: "{{ hcloud_server.image | default('centos-7') }}"
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
register: __hcloud_server
async: 7200