Debian Codegraph @

ansible_collections/hetzner/hcloud/tests/integration/targets/image_info/tasks/prepare.yml

raw symbols SCIP
1 ---
2 - name: Create test_server
3 hetzner.hcloud.server:
4 name: "{{ hcloud_server_name }}"
5 server_type: "{{ hcloud_server_type_name }}"
6 image: "{{ hcloud_image_name }}"
7 location: "{{ hcloud_location_name }}"
8 state: created
9 register: test_server
10
11 - name: Create test_snapshot
12 ansible.builtin.script:
13 cmd: >
14 {{ hcloud_cli_path }} server create-image
15 --type snapshot
16 --description "{{ hcloud_snapshot_name }}"
17 --label key=value
18 "{{ test_server.hcloud_server.id }}"
19 | awk '{print $2}'
20 register: test_snapshot
21
22 - name: Set test_snapshot_id
23 ansible.builtin.set_fact:
24 test_snapshot_id: "{{ test_snapshot.stdout_lines[0] }}"