blob: 6f5fb5a3ab9b3eaedd1f2f19e94ac037e1d5d8f4 (
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
|
---
- debug: msg="START cli/invalid.yaml"
- name: run invalid command
nxos_command:
commands: ['show foo']
provider: "{{ cli }}"
register: result
ignore_errors: yes
- assert:
that:
- "result.failed == true"
- name: run commands that include invalid command
nxos_command:
commands:
- show version
- show foo
provider: "{{ cli }}"
register: result
ignore_errors: yes
- assert:
that:
- "result.failed == true"
- debug: msg="END cli/invalid.yaml"
|