20 lines
644 B
YAML
20 lines
644 B
YAML
- name: Check OpenVPN tunnel from ru-vps
|
|
hosts: ru-vps
|
|
gather_facts: false
|
|
tasks:
|
|
- name: Ping VPN LXC OpenVPN address
|
|
ansible.builtin.command: ping -c 3 -W 2 10.78.0.2
|
|
changed_when: false
|
|
|
|
- name: Check mini-pc PVE port through OpenVPN gateway
|
|
ansible.builtin.command: nc -vz -w 5 192.168.1.10 8006
|
|
changed_when: false
|
|
|
|
- name: Check cloud-pc PVE port through OpenVPN gateway
|
|
ansible.builtin.command: nc -vz -w 5 192.168.1.5 8006
|
|
changed_when: false
|
|
|
|
- name: Check PBS port through OpenVPN gateway
|
|
ansible.builtin.command: nc -vz -w 5 192.168.1.20 8007
|
|
changed_when: false
|