mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fb3bef7f46
When using AWS we have to use the full domain name in the inventory file, which we rather than the short name. This change avoids that ending up being set in the tests.
29 lines
585 B
YAML
29 lines
585 B
YAML
---
|
|
- 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_short }}'
|
|
- 'set system foo'
|
|
provider: "{{ netconf }}"
|
|
register: result
|
|
ignore_errors: yes
|
|
|
|
- assert:
|
|
that:
|
|
- "result.failed == true"
|
|
|
|
- debug: msg="END netconf/invalid.yaml"
|