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.
net_banner - Manage multiline banners on network devices¶
This will configure both login and motd banners on network devices. 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 bannernet_banner:banner:logintext:|this is my login bannerthat contains a multilinestringstate:present-name:remove the motd bannernet_banner:banner:motdstate:absent-name:Configure banner from filenet_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>