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.
junos_banner - Manage multiline banners on Juniper JUNOS 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 whether or not the configuration is active or deactivated
banner
yes
login
motd
Specifies which banner that should be configured on the remote device. Value login indicates system login message prior to authenticating, motd is login announcement after successful authentication.
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 bannerjunos_banner:banner:logintext:|this is my login bannerthat contains a multilinestringstate:present-name:remove the motd bannerjunos_banner:banner:motdstate:absent-name:deactivate the motd bannerjunos_banner:banner:motdstate:presentactive:False-name:activate the motd bannerjunos_banner:banner:motdstate:presentactive:True-name:Configure banner from filejunos_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>