alliedtelesis / alliedtelesis.awplus / 1.0.0 / module / awplus_banner Manage multiline banners on AlliedWare Plus devices | "added in version" 2.9 of alliedtelesis.awplus" Authors: Cheng Yi Kok (@cyk19) preview | supported by networkalliedtelesis.awplus.awplus_banner (1.0.0) — module
Install with ansible-galaxy collection install alliedtelesis.awplus:==1.0.0
collections: - name: alliedtelesis.awplus version: 1.0.0
This will configure both login and motd banners on remote devices running AlliedWare Plus. It allows playbooks to add or remote banner text from the active running configuration.
- name: configure motd banner awplus_banner: banner: motd text: Configured by Ansible state: present
- name: remove motd banner awplus_banner: banner: motd state: absent
- name: Configure banner from file awplus_banner: banner: exec text: "{{ lookup('file', './raw_banner.cfg') }}" state: present
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. 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: - motd - exec description: - Specifies which banner should be configured on the remote device. In Ansible 2.4 and earlier only I(login) and I(motd) were supported. required: true
commands: description: The list of configuration mode commands to send to the device returned: always sample: - - banner motd Configured by Ansible type: list