ansible / ansible.builtin / v2.3.3.0-1 / module / ios_banner Manage multiline banners on Cisco IOS devices | "added in version" 2.3 of ansible.builtin" Authors: Ricardo Carrillo Cruz (@rcarrillocruz) preview | supported by communityansible.builtin.ios_banner (v2.3.3.0-1) — module
pip
Install with pip install ansible==2.3.3.0.post1
This will configure both login and motd banners on remote devices running Cisco IOS. It allows playbooks to add or remote banner text from the active running configuration.
- name: configure the login banner ios_banner: banner: login text: | this is my login banner that contains a multiline string state: present
- name: remove the motd banner ios_banner: banner: motd state: absent
text: default: null description: - The banner text that should be present in the remote device running configuration. This argument accepts a multiline string. Requires I(state=present). state: choices: - present - absent default: present description: - Specifies whether or not the configuration is present in the current devices active running configuration. banner: choices: - login - banner default: null description: - Specifies which banner that should be configured on the remote device. required: true
commands: description: The list of configuration mode commands to send to the device returned: always sample: - banner login - this is my login banner - that contains a multiline - string type: list