blob: e670e4ef5b98cac99390a4126e6a43e3b13eca25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
---
- debug: msg="START nxapi/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: "{{ nxapi }}"
register: result
ignore_errors: yes
- assert:
that:
- "result.changed == false"
- "result.failed == true"
- "result.msg == 'path specified in src not found'"
- debug: msg="END nxapi/src_invalid.yaml"
|