Debian Codegraph @

ansible_collections/hetzner/hcloud/tests/integration/targets/setup_hcloud_cli/tasks/main.yml

raw
1 ---
2 - name: Create temporary file for hcloud_cli_path
3 ansible.builtin.tempfile:
4 state: directory
5 register: _tmp_hcloud_cli
6
7 - name: Download hcloud cli from Github releases
8 ansible.builtin.unarchive:
9 src: https://github.com/hetznercloud/cli/releases/download/v1.37.0/hcloud-linux-amd64.tar.gz
10 dest: "{{ _tmp_hcloud_cli.path }}"
11 remote_src: true
12 extra_opts: [hcloud]
13
14 - name: Set hcloud_cli_path
15 ansible.builtin.set_fact:
16 hcloud_cli_path: "{{ _tmp_hcloud_cli.path }}/hcloud"