|
|
@ -8,7 +8,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
- name: configure top level command
|
|
|
|
- name: configure top level command
|
|
|
|
iosxr_config:
|
|
|
|
iosxr_config:
|
|
|
|
commands: ['hostname foo']
|
|
|
|
commands: ['banner motd "hello world"', 'hostname foo']
|
|
|
|
match: strict
|
|
|
|
match: strict
|
|
|
|
register: result
|
|
|
|
register: result
|
|
|
|
|
|
|
|
|
|
|
@ -16,10 +16,11 @@
|
|
|
|
that:
|
|
|
|
that:
|
|
|
|
- "result.changed == true"
|
|
|
|
- "result.changed == true"
|
|
|
|
- "'hostname foo' in result.commands"
|
|
|
|
- "'hostname foo' in result.commands"
|
|
|
|
|
|
|
|
- "'banner motd \"hello world\"' in result.commands"
|
|
|
|
|
|
|
|
|
|
|
|
- name: configure top level command idempotent check
|
|
|
|
- name: configure top level command idempotent check
|
|
|
|
iosxr_config:
|
|
|
|
iosxr_config:
|
|
|
|
commands: ['hostname foo']
|
|
|
|
commands: ['banner motd "hello world"', 'hostname foo']
|
|
|
|
match: strict
|
|
|
|
match: strict
|
|
|
|
register: result
|
|
|
|
register: result
|
|
|
|
|
|
|
|
|
|
|
|