2e76c89910
* Update task definitions for network_cli * Add connection to debug messages * Specify connection for prepare task * pc won't be around for connection=network_cli * Assorted Python 3 fixes * Give default port if ansible_ssh_port missing * delegate -> connection * Extend error regex
18 lines
497 B
YAML
18 lines
497 B
YAML
---
|
|
- debug: msg="START cli/src_invalid.yaml on connection={{ ansible_connection }}"
|
|
|
|
|
|
# Defend https://github.com/ansible/ansible-modules-core/issues/4797
|
|
- name: configure with invalid src
|
|
iosxr_config:
|
|
src: basic/foobar.j2
|
|
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 on connection={{ ansible_connection }}"
|