mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-23 04:24:00 -07:00
nxos_banner CI fix (#29134)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
parent
497e6cf405
commit
588bddbc35
2 changed files with 9 additions and 9 deletions
|
@ -1,16 +1,16 @@
|
|||
---
|
||||
- name: Setup
|
||||
nxos_banner:
|
||||
banner: exec
|
||||
banner: motd
|
||||
text: |
|
||||
Junk exec banner
|
||||
Junk motd banner
|
||||
over multiple lines
|
||||
state: present
|
||||
provider: "{{ connection }}"
|
||||
|
||||
- name: remove exec
|
||||
nxos_banner: &rm-exec
|
||||
banner: exec
|
||||
- name: remove motd
|
||||
nxos_banner: &rm-motd
|
||||
banner: motd
|
||||
state: absent
|
||||
provider: "{{ connection }}"
|
||||
register: result
|
||||
|
@ -18,10 +18,10 @@
|
|||
- assert:
|
||||
that:
|
||||
- "result.changed == true"
|
||||
- "'no banner exec' in result.commands"
|
||||
- "'no banner motd' in result.commands"
|
||||
|
||||
- name: remove exec (idempotent)
|
||||
nxos_banner: *rm-exec
|
||||
- name: remove motd (idempotent)
|
||||
nxos_banner: *rm-motd
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue