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