feat add switch login banner
This commit is contained in:
parent
d211caae89
commit
77c2d6aa04
4 changed files with 13 additions and 27 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
vault-pass
|
10
device-cisco-2960-1.yml
Normal file
10
device-cisco-2960-1.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
- hosts: cisco-2960-1.n39.eu
|
||||
become: true
|
||||
|
||||
tasks:
|
||||
- name: configure login banner
|
||||
cisco.ios.ios_banner:
|
||||
banner: login
|
||||
text: "Documentation here: https://wiki.netz39.de/internal:inventory:network:2960s-24td-l"
|
||||
state: present
|
|
@ -1,7 +1,8 @@
|
|||
---
|
||||
ansible_host: 172.23.63.45
|
||||
ansible_user: admin
|
||||
ansible_password: {{ vault_ansible_password }}
|
||||
ansible_password: "{{ vault_ansible_password }}"
|
||||
ansible_become_password: "{{ vault_ansible_password }}"
|
||||
ansible_connection: network_cli
|
||||
ansible_network_os: ios
|
||||
vlans:
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
---
|
||||
- hosts: cisco-catalyst-2960s.n39.eu
|
||||
|
||||
tasks:
|
||||
- name: configure login banner
|
||||
cisco.ios.ios_banner:
|
||||
banner: login
|
||||
text: welcome to cisco-catalyst-2960s
|
||||
state: present
|
||||
|
||||
- name: set hostname
|
||||
cisco.ios.ios_hostname:
|
||||
config:
|
||||
hostname: cisco-catalyst-2960s
|
||||
state: override
|
||||
|
||||
- name: configure vlans
|
||||
cisco.ios.ios_vlans:
|
||||
config:
|
||||
- name: {{ item.name }}
|
||||
vlan_id: {{ item.id }}
|
||||
state: active
|
||||
shutdown: disabled
|
||||
remote_span: true
|
||||
state: merged
|
||||
loop: "{{ vlans | dict2items }}"
|
Loading…
Reference in a new issue