mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
fix iosxr_banner (#27378)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
26c9007c2d
commit
6d1bd33aa5
5 changed files with 22 additions and 64 deletions
|
@ -22,8 +22,8 @@
|
|||
- assert:
|
||||
that:
|
||||
- "result.changed == true"
|
||||
- "'this is my login banner' in result.commands"
|
||||
- "'that has a multiline' in result.commands"
|
||||
- "'this is my login banner' in result.commands[0]"
|
||||
- "'that has a multiline' in result.commands[0]"
|
||||
|
||||
- name: Set login again (idempotent)
|
||||
iosxr_banner:
|
||||
|
|
|
@ -22,8 +22,8 @@
|
|||
- assert:
|
||||
that:
|
||||
- "result.changed == true"
|
||||
- "'this is my motd banner' in result.commands"
|
||||
- "'that has a multiline' in result.commands"
|
||||
- "'this is my motd banner' in result.commands[0]"
|
||||
- "'that has a multiline' in result.commands[0]"
|
||||
|
||||
- name: Set motd again (idempotent)
|
||||
iosxr_banner:
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
- assert:
|
||||
that:
|
||||
- "result.changed == true"
|
||||
- "'no banner login' in result.commands"
|
||||
- "'no banner login' in result.commands[0]"
|
||||
|
||||
- name: remove login (idempotent)
|
||||
iosxr_banner:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue