mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-03 23:51:48 +00:00
##### SUMMARY
Backport of
62ab0570c8
(https://github.com/ansible-collections/hetzner.hcloud/pull/316) to
branch `stable-1`
---------
Co-authored-by: jo <ljonas@riseup.net>
16 lines
506 B
YAML
16 lines
506 B
YAML
---
|
|
- name: Create temporary file for hcloud_cli_path
|
|
ansible.builtin.tempfile:
|
|
state: directory
|
|
register: _tmp_hcloud_cli
|
|
|
|
- name: Download hcloud cli from Github releases
|
|
ansible.builtin.unarchive:
|
|
src: https://github.com/hetznercloud/cli/releases/download/v1.37.0/hcloud-linux-amd64.tar.gz
|
|
dest: "{{ _tmp_hcloud_cli.path }}"
|
|
remote_src: true
|
|
extra_opts: [hcloud]
|
|
|
|
- name: Set hcloud_cli_path
|
|
ansible.builtin.set_fact:
|
|
hcloud_cli_path: "{{ _tmp_hcloud_cli.path }}/hcloud"
|