Manage multiline banners on VyOS devices
Version added: 1.0.0
- This will configure both pre-login and post-login banners on remote devices running VyOS. It allows playbooks to add or remote banner text from the active running configuration.
Note
- Tested against VyOS 1.1.8 (helium).
- This module works with connection
ansible.netcommon.network_cli
. See the VyOS OS Platform Options. - For more information on using Ansible to manage network devices see the :ref:`Ansible Network Guide <network_guide>`
- name: configure the pre-login banner
vyos.vyos.vyos_banner:
banner: pre-login
text: |
this is my pre-login banner
that contains a multiline
string
state: present
- name: remove the post-login banner
vyos.vyos.vyos_banner:
banner: post-login
state: absent
Common return values are documented here, the following are the fields unique to this module:
- Trishna Guha (@trishnaguha)