To use this multi-platform network automation banner role:
- name: load banner onto network device
vars:
- network_banner: "{{ net_banner | default(None) }}"
- banner_type: "{{ net_type | default('login') }}"
include_role:
name: network.toolkit.banner
---
- name: set router banners
hosts: routers
gather_facts: no
tasks:
- name: load banner onto network device
vars:
- network_banner: "{{ net_banner | default(None) }}"
- banner_type: "{{ net_type | default('login') }}"
include_role:
name: network.toolkit.banner
There are two variables ready to use for extra_vars and/or Ansible Automation Platform surveys.
The network_banner
which is the text you want for the banner, and the banner_type
which can be
- login
- motd
- exec (Cisco IOS only)
- incoming (Cisco IOS only)
- slip-ppp (Cisco IOS only)
This list of parameters is stored in each platform module: