blob: 32931f8ab1e2fd9168a5dd882aa25348c27c27e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
---
- debug: msg="START cli/src_invalid.yaml"
# Defend https://github.com/ansible/ansible-modules-core/issues/4797
- name: configure with invalid src
nxos_config:
src: basic/foobar.j2
provider: "{{ cli }}"
register: result
ignore_errors: yes
- assert:
that:
- "result.changed == false"
- "result.failed == true"
- "result.msg == 'path specified in src not found'"
- debug: msg="END cli/src_invalid.yaml"
|