Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 1.43 KB

README.md

File metadata and controls

48 lines (37 loc) · 1.43 KB

network.toolkit.banner

To use this multi-platform network automation banner role:

Task example:

- 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

Full Ansible Playbook example:

---
- 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

Additional Info

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: