2017-08-29 17:21:49 +02:00
|
|
|
---
|
|
|
|
- debug: msg="START cli/ping.yaml"
|
|
|
|
|
|
|
|
- name: expected successful ping
|
|
|
|
ios_ping: &valid_ip
|
|
|
|
dest: '8.8.8.8'
|
2017-09-28 11:53:52 +02:00
|
|
|
authorize: yes
|
2017-08-29 17:21:49 +02:00
|
|
|
register: esp
|
|
|
|
|
|
|
|
- name: unexpected unsuccessful ping
|
|
|
|
ios_ping: &invalid_ip
|
|
|
|
dest: '10.255.255.250'
|
|
|
|
timeout: 45
|
2017-09-28 11:53:52 +02:00
|
|
|
authorize: yes
|
2017-08-29 17:21:49 +02:00
|
|
|
register: uup
|
|
|
|
|
|
|
|
- name: unexpected successful ping
|
|
|
|
ios_ping:
|
|
|
|
<<: *valid_ip
|
|
|
|
state: 'absent'
|
2017-09-28 11:53:52 +02:00
|
|
|
authorize: yes
|
2017-08-29 17:21:49 +02:00
|
|
|
register: usp
|
|
|
|
|
|
|
|
- name: expected unsuccessful ping
|
|
|
|
ios_ping:
|
|
|
|
<<: *invalid_ip
|
|
|
|
state: 'absent'
|
2017-09-28 11:53:52 +02:00
|
|
|
authorize: yes
|
2017-08-29 17:21:49 +02:00
|
|
|
register: eup
|
|
|
|
|
|
|
|
- name: assert
|
|
|
|
assert:
|
|
|
|
that:
|
|
|
|
- esp.failed == eup.failed == false
|
|
|
|
- usp.failed == uup.failed == true
|