Begin Switch Infrastructure config

This commit is contained in:
Patrick Toal
2019-06-20 11:24:53 -04:00
parent 6e2205a046
commit 11b9c3071d
10 changed files with 159 additions and 1 deletions

View File

@@ -0,0 +1,33 @@
---
# tasks file for toallab.infrastructure
- name: Backup IOS Config
connection: network_cli
become: yes
ios_config:
backup: yes
- name: Install base configuration
connection: network_cli
become: yes
ios_config:
lines:
- enable secret 5 $1$7h96$Q7sso70QqSgFIpY91SuQC0
- username ptoal privilege 15 secret 5 $1$j4aN$xbLbABGihOTnnHl5PFm4g1
- aaa new-model
- ip domain-name lan.toal.ca
- ip name-server 192.168.1.1
- no cdp run
- lldp run
- ip ssh authentication-retries 2
- ip ssh rsa keypair-name ssh2
- ip ssh version 2
- ntp server 0.ca.pool.ntp.org
- ntp server 0.pool.ntp.org
- ntp server ip 1.pool.ntp.org
- name: Save changes
become: yes
connection: network_cli
ios_config:
save_when: changed