ansible / ansible.builtin / v2.9.27 / module / icx_banner Manage multiline banners on Ruckus ICX 7000 series switches | "added in version" 2.9 of ansible.builtin" Authors: Ruckus Wireless (@Commscope) preview | supported by communityansible.builtin.icx_banner (v2.9.27) — module
pip
Install with pip install ansible==2.9.27
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 icx_banner: banner: motd text: | this is my motd banner that contains a multiline string state: present
- name: remove the motd banner icx_banner: banner: motd state: absent
- name: configure require-enter-key for motd icx_banner: banner: motd enterkey: True
- name: remove require-enter-key for motd 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: default: false description: - Specifies whether or not the motd configuration should accept the require-enter-key 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