aruba / aruba-switch-ansible

**Deprecated Repository** for ArubaOS-switch and ArubaOS-CX
Apache License 2.0
58 stars 25 forks source link

Banner motd # #2

Closed kermitsweetwater closed 5 years ago

kermitsweetwater commented 5 years ago

Do you have an example yml that shows how configure a banner on the switch using the 'banner motd #' command? Thank you

kermitsweetwater commented 5 years ago

resolved

Sethueha commented 4 years ago

Could you please provide the resolution steps. I want to do a banner configuration in HP Procurve switches using aruba_config module.

cyrmoon commented 3 years ago

HOW ?

sstrijak commented 1 year ago

Try do the following:

- name: Generate config
  set_fact:
    cfglines:
      - 'session interactive-mode disable'
      - 'banner motd "!!!!!!!!!!!!!!!!!!!!!WARNING! FINAL NOTICE!!!!!!!!!!!!!!!!!!!!!!!!\nOnly authorised users may access this system."'
      - 'session interactive-mode enable'

- name: Push configuration
  community.network.aruba_config:
    commands: "{{ cfglines }}"
    match: none
    save_when: always
  register: cfgresult