You are reading an unmaintained version of the Ansible documentation. Unmaintained Ansible versions can contain unfixed security vulnerabilities (CVE). Please upgrade to a maintained version. See the latest Ansible documentation.
iosxr_banner - Manage multiline banners on Cisco IOS XR devices¶
This will configure both exec and motd banners on remote devices running Cisco IOS XR. It allows playbooks to add or remote banner text from the active running configuration.
Specifies which banner that should be configured on the remote device.
state
no
present
present
absent
Specifies whether or not the configuration is present in the current devices active running configuration.
text
no
The banner text that should be present in the remote device running configuration. This argument accepts a multiline string, with no empty lines. Requires state=present.
-name:configure the login banneriosxr_banner:banner:logintext:|this is my login bannerthat contains a multilinestringstate:present-name:remove the motd banneriosxr_banner:banner:motdstate:absent-name:Configure banner from fileiosxr_banner:banner:motdtext:"{{lookup('file','./config_partial/raw_banner.cfg')}}"state:present
For more information about Red Hat’s this support of this module, please
refer to this knowledge base article<https://access.redhat.com/articles/rhel-top-support-policies>