Skip to content

Commit

Permalink
fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vitabaks committed Sep 13, 2023
1 parent 62a921b commit e7f4f05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions roles/cloud-resources/tasks/hetzner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,16 @@
- block:
# if server_network is not specified, find an available subnet
- name: "Hetzner Cloud: Gather information about network zones"
uri:
ansible.builtin.uri:
url: "https://api.hetzner.cloud/v1/locations"
method: GET
headers:
Authorization: "Bearer {{ lookup('ansible.builtin.env', 'HCLOUD_API_TOKEN') }}"
return_content: yes
return_content: true
register: hetzner_locations_response

- name: "Hetzner Cloud: Extract network zone for server_location"
set_fact:
ansible.builtin.set_fact:
target_network_zone: "{{ item.network_zone }}"
loop: "{{ hetzner_locations_response.json.locations }}"
loop_control:
Expand Down

0 comments on commit e7f4f05

Please sign in to comment.