File tree Expand file tree Collapse file tree 3 files changed +4
-14
lines changed
roles/cloud-hetzner/tasks Expand file tree Collapse file tree 3 files changed +4
-14
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- - name : Build python virtual environment
3
- import_tasks : venv.yml
4
-
5
2
- name : Include prompts
6
3
import_tasks : prompts.yml
7
4
8
5
- name : Create an ssh key
9
- hcloud_ssh_key :
6
+ hetzner.hcloud.ssh_key :
10
7
name : algo-{{ 999999 | random(seed=lookup('file', SSH_keys.public)) }}
11
8
public_key : " {{ lookup('file', SSH_keys.public) }}"
12
9
state : present
13
10
api_token : " {{ algo_hcloud_token }}"
14
11
register : hcloud_ssh_key
15
12
16
13
- name : Create a server...
17
- hcloud_server :
14
+ hetzner.hcloud.server :
18
15
name : " {{ algo_server_name }}"
19
16
location : " {{ algo_hcloud_region }}"
20
17
server_type : " {{ cloud_providers.hetzner.server_type }}"
Original file line number Diff line number Diff line change 13
13
algo_hcloud_token : " {{ hcloud_token | default(_hcloud_token.user_input|default(None)) | default(lookup('env','HCLOUD_TOKEN'), true) }}"
14
14
15
15
- name : Get regions
16
- hcloud_datacenter_facts :
16
+ hetzner.hcloud.datacenter_info :
17
17
api_token : " {{ algo_hcloud_token }}"
18
18
register : _hcloud_regions
19
19
20
20
- name : Set facts about the regions
21
21
set_fact :
22
- hcloud_regions : " {{ hcloud_datacenter_facts | sort(attribute='location') }}"
22
+ hcloud_regions : " {{ _hcloud_regions.hcloud_datacenter_info | sort(attribute='location') }}"
23
23
24
24
- name : Set default region
25
25
set_fact :
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments