1
0
Fork 0
mirror of https://github.com/ansible-collections/hetzner.hcloud.git synced 2026-02-03 23:51:48 +00:00
hetzner.hcloud/tests/integration/targets/setup_hcloud_cli/tasks/main.yml
Julian Tölle 01f7180129
test: setup new temporary project service for integration tests (stable-1) (#322)
##### SUMMARY

Backport of
62ab0570c8
(https://github.com/ansible-collections/hetzner.hcloud/pull/316) to
branch `stable-1`

---------

Co-authored-by: jo <ljonas@riseup.net>
2023-09-08 12:45:30 +02:00

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"