Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (29 sloc) 725 Bytes
---
- hosts: all
connection: local
user: vagrant
gather_facts: 'no'
tasks:
- name: validate connection from rtr-1
ios_ping:
dest: '{{ item }}'
state: 'present'
when: "'rtr-1' in inventory_hostname"
with_items:
- '10.0.255.1'
- name: validate connection from rtr-2
ios_ping:
dest: '{{ item }}'
state: 'present'
when: "'rtr-2' in inventory_hostname"
with_items:
- '217.100.100.1'
- name: validate from rtr-1 to internet
ios_ping:
dest: '{{ item }}'
state: 'present'
when: "'rtr-1' in inventory_hostname"
with_items:
- '8.8.8.8'
- '8.8.4.4'
- '217.100.100.254'