blob: 04ad7c22ad72bd32667ffb401958d9080106a367 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
---
- name: Verify role state
hosts: vpn
gather_facts: false
tasks:
- name: Wait for IKE, IPsec and BGP
ansible.builtin.pause:
seconds: 60
run_once: true
- name: Run role checks
ansible.builtin.include_role:
name: vyos.blueprints.ipsec_route_based
tasks_from: verify
- name: Verify traffic over BGP-learned routes through the tunnel
hosts: localhost
gather_facts: false
tasks:
- name: Ping between on-premises and the "Azure" LAN
ansible.builtin.command:
cmd: docker exec clab-bp-azure-{{ item.from }} ping -c 3 -W 2 {{ item.to }}
become: "{{ lookup('ansible.builtin.env', 'CLAB_BECOME', default='true') | bool }}"
changed_when: false
loop:
- {from: onprem, to: 10.0.1.10}
- {from: vm, to: 10.10.2.10}
loop_control:
label: "{{ item.from }} -> {{ item.to }}"
|