|
|
|
@ -6,7 +6,7 @@
|
|
|
|
body_format: json
|
|
|
|
body_format: json
|
|
|
|
headers:
|
|
|
|
headers:
|
|
|
|
accept: application/json
|
|
|
|
accept: application/json
|
|
|
|
authorization: Bearer {{ hetzner_authentication_token }}
|
|
|
|
authorization: Bearer {{ hetzner_authentication_ansible }}
|
|
|
|
status_code: [200]
|
|
|
|
status_code: [200]
|
|
|
|
register: hcloud_firewalls_all
|
|
|
|
register: hcloud_firewalls_all
|
|
|
|
delegate_to: 127.0.0.1
|
|
|
|
delegate_to: 127.0.0.1
|
|
|
|
@ -40,7 +40,7 @@
|
|
|
|
body_format: json
|
|
|
|
body_format: json
|
|
|
|
headers:
|
|
|
|
headers:
|
|
|
|
accept: application/json
|
|
|
|
accept: application/json
|
|
|
|
authorization: Bearer {{ hetzner_authentication_token }}
|
|
|
|
authorization: Bearer {{ hetzner_authentication_ansible }}
|
|
|
|
status_code: [200]
|
|
|
|
status_code: [200]
|
|
|
|
register: hcloud_firewalls_all
|
|
|
|
register: hcloud_firewalls_all
|
|
|
|
delegate_to: 127.0.0.1
|
|
|
|
delegate_to: 127.0.0.1
|
|
|
|
@ -63,7 +63,7 @@
|
|
|
|
body_format: json
|
|
|
|
body_format: json
|
|
|
|
headers:
|
|
|
|
headers:
|
|
|
|
Content-Type: application/json
|
|
|
|
Content-Type: application/json
|
|
|
|
authorization: Bearer {{ hetzner_authentication_token }}
|
|
|
|
authorization: Bearer {{ hetzner_authentication_ansible }}
|
|
|
|
body: "{{ firewall_object | to_json }}"
|
|
|
|
body: "{{ firewall_object | to_json }}"
|
|
|
|
return_content: yes
|
|
|
|
return_content: yes
|
|
|
|
status_code: [201]
|
|
|
|
status_code: [201]
|
|
|
|
@ -80,7 +80,7 @@
|
|
|
|
body_format: json
|
|
|
|
body_format: json
|
|
|
|
headers:
|
|
|
|
headers:
|
|
|
|
Content-Type: application/json
|
|
|
|
Content-Type: application/json
|
|
|
|
authorization: Bearer {{ hetzner_authentication_token }}
|
|
|
|
authorization: Bearer {{ hetzner_authentication_ansible }}
|
|
|
|
body: "{{ firewall_object | to_json }}"
|
|
|
|
body: "{{ firewall_object | to_json }}"
|
|
|
|
return_content: yes
|
|
|
|
return_content: yes
|
|
|
|
status_code: [200]
|
|
|
|
status_code: [200]
|
|
|
|
@ -105,7 +105,7 @@
|
|
|
|
body_format: json
|
|
|
|
body_format: json
|
|
|
|
headers:
|
|
|
|
headers:
|
|
|
|
Content-Type: application/json
|
|
|
|
Content-Type: application/json
|
|
|
|
authorization: Bearer {{ hetzner_authentication_token }}
|
|
|
|
authorization: Bearer {{ hetzner_authentication_ansible }}
|
|
|
|
body: "{{ deactivate_fw_obj | to_json }}"
|
|
|
|
body: "{{ deactivate_fw_obj | to_json }}"
|
|
|
|
return_content: yes
|
|
|
|
return_content: yes
|
|
|
|
status_code: [201]
|
|
|
|
status_code: [201]
|
|
|
|
@ -119,7 +119,7 @@
|
|
|
|
body_format: json
|
|
|
|
body_format: json
|
|
|
|
headers:
|
|
|
|
headers:
|
|
|
|
Content-Type: application/json
|
|
|
|
Content-Type: application/json
|
|
|
|
authorization: Bearer {{ hetzner_authentication_token }}
|
|
|
|
authorization: Bearer {{ hetzner_authentication_ansible }}
|
|
|
|
return_content: yes
|
|
|
|
return_content: yes
|
|
|
|
status_code: [204]
|
|
|
|
status_code: [204]
|
|
|
|
register: cleanup_firewall
|
|
|
|
register: cleanup_firewall
|
|
|
|
|