mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
added lines to mode: strict (#27442)
This commit is contained in:
parent
60676add33
commit
e599a01bdc
1 changed files with 3 additions and 2 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
- name: configure top level command
|
||||
iosxr_config:
|
||||
commands: ['hostname foo']
|
||||
commands: ['banner motd "hello world"', 'hostname foo']
|
||||
match: strict
|
||||
register: result
|
||||
|
||||
|
@ -16,10 +16,11 @@
|
|||
that:
|
||||
- "result.changed == true"
|
||||
- "'hostname foo' in result.commands"
|
||||
- "'banner motd \"hello world\"' in result.commands"
|
||||
|
||||
- name: configure top level command idempotent check
|
||||
iosxr_config:
|
||||
commands: ['hostname foo']
|
||||
commands: ['banner motd "hello world"', 'hostname foo']
|
||||
match: strict
|
||||
register: result
|
||||
|
||||
|
|
Loading…
Reference in a new issue