fix api token vars
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2020-05-19 22:57:51 +02:00
parent ed0baf8dea
commit 75b59cbc1a
2 changed files with 8 additions and 6 deletions

View File

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

View File

@ -4,7 +4,7 @@
name: "{{ hcloud_server.name }}" name: "{{ hcloud_server.name }}"
server_type: "{{ hcloud_server.type | default('cx11') }}" server_type: "{{ hcloud_server.type | default('cx11') }}"
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(hcloud_server_default_image) }}"
location: "{{ hcloud_server.location | default('nbg1') }}" location: "{{ hcloud_server.location | default('nbg1') }}"
backups: "{{ hcloud_server.backups | default('no') }}" backups: "{{ hcloud_server.backups | default('no') }}"
labels: "{{ hcloud_server.labels | default({}) }}" labels: "{{ hcloud_server.labels | default({}) }}"
@ -38,7 +38,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)) }}" api_token: "{{ hcloud_server.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:
@ -50,7 +50,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)) }}" api_token: "{{ hcloud_server.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: