mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
579 B
YAML
30 lines
579 B
YAML
8 years ago
|
---
|
||
|
- debug: msg="START netconf/invalid.yaml"
|
||
|
|
||
|
- name: configure single invalid command
|
||
|
junos_config:
|
||
|
lines:
|
||
|
- 'set system foo'
|
||
|
provider: "{{ netconf }}"
|
||
|
register: result
|
||
|
ignore_errors: yes
|
||
|
|
||
|
- assert:
|
||
|
that:
|
||
|
- "result.failed == true"
|
||
|
|
||
|
- name: configure multiple invalid command
|
||
|
junos_config:
|
||
|
lines:
|
||
|
- 'set system host-name {{ inventory_hostname }}'
|
||
|
- 'set system foo'
|
||
|
provider: "{{ netconf }}"
|
||
|
register: result
|
||
|
ignore_errors: yes
|
||
|
|
||
|
- assert:
|
||
|
that:
|
||
|
- "result.failed == true"
|
||
|
|
||
|
- debug: msg="END netconf/invalid.yaml"
|