blob: 49e19ea2d06e40c8880a44113d8a25fb9c8df216 [file] [log] [blame]
---
---
# tasks file for external-port-connectivity-validator-server
- name: Source server to connect from
debug:
msg: 'Source Server: {{ local_address }}'
- name: Validate for open port {{ target_server }}:{{ check_port }}
uri:
url: 'http://{{ target_server }}:{{ check_port }}/check'
environment:
http_proxy: "{{ http_proxy }}"
https_proxy: "{{ https_proxy }}"
- name: Shutdown validation server {{ target_server }}:{{ check_port }}
uri:
url: 'http://{{ target_server }}:{{ check_port }}/done'
register: done
failed_when: not done.failed
environment:
http_proxy: "{{ http_proxy }}"
https_proxy: "{{ https_proxy }}"