You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
735 B
26 lines
735 B
4 years ago
|
---
|
||
|
- hosts: vpn
|
||
|
roles:
|
||
|
- wg_vpn
|
||
|
|
||
|
tasks:
|
||
|
- name: Verify remote wg node has wg running
|
||
|
shell: ping -c1 10.200.219.1
|
||
|
register: remote_result
|
||
|
- assert:
|
||
|
that:
|
||
|
- "'1 packets transmitted, 1 packets received' in remote_result.stdout"
|
||
|
|
||
|
- name: Verify remote wg node has wg running
|
||
|
shell: ping -c1 10.200.219.2
|
||
|
register: local_result
|
||
|
- assert:
|
||
|
that:
|
||
|
- "'1 packets transmitted, 1 packets received' in local_result.stdout"
|
||
|
- name: Verify that local node can talk to remote
|
||
|
shell: ping -c1 10.200.219.1
|
||
|
register: tunnel_result
|
||
|
- assert:
|
||
|
that:
|
||
|
- "'1 packets transmitted, 1 packets received' in tunnel_result.stdout"
|