community / community.network / 1.3.1 / module / icx_banner Manage multiline banners on Ruckus ICX 7000 series switches Authors: Ruckus Wireless (@Commscope)community.network.icx_banner (1.3.1) — module
Install with ansible-galaxy collection install community.network:==1.3.1
collections: - name: community.network version: 1.3.1
This will configure both login and motd banners on remote ruckus ICX 7000 series switches. It allows playbooks to add or remove banner text from the active running configuration.
- name: Configure the motd banner community.network.icx_banner: banner: motd text: | this is my motd banner that contains a multiline string state: present
- name: Remove the motd banner community.network.icx_banner: banner: motd state: absent
- name: Configure require-enter-key for motd community.network.icx_banner: banner: motd enterkey: True
- name: Remove require-enter-key for motd community.network.icx_banner: banner: motd enterkey: False
text: description: - The banner text that should be present in the remote device running configuration. This argument accepts a multiline string, with no empty lines. type: str state: choices: - present - absent default: present description: - Specifies whether or not the configuration is present in the current devices active running configuration. type: str banner: choices: - motd - exec - incoming description: - Specifies which banner should be configured on the remote device. required: true type: str enterkey: description: - Specifies whether or not the motd configuration should accept the require-enter-key - Default is false. type: bool check_running_config: default: true description: - Check running configuration. This can be set as environment variable. Module will use environment variable value(default:True), unless it is overridden, by specifying it as module parameter. type: bool
commands: description: The list of configuration mode commands to send to the device returned: always sample: - banner motd - this is my motd banner - that contains a multiline - string type: list