blob: e832e614f1396d6e2e79a59841097501990bc24c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
enable
configure
no ip domain-lookup
hostname {{ host_name }}
vlan {{ dellos6_mgmt_vlan }}
name mgmt
exit
{% if dellos6_mgmt_interface is defined and dellos6_mgmt_interface != '' %}
interface {{ dellos6_mgmt_interface }}
switchport access vlan {{ dellos6_mgmt_vlan }}
exit
{% endif %}
interface vlan {{ dellos6_mgmt_vlan }}
ip address {{ dellos6_mgmt_ipaddr }} {{ dellos6_mgmt_netmask }}
exit
{% if dellos6_mgmt_gateway is defined %}
ip default-gateway {{ dellos6_mgmt_gateway }}
{% endif %}
no spanning-tree
crypto key generate rsa
crypto key generate dsa
ip ssh server
ip ssh pubkey-auth
username "root" password {{ ansible_become_password }} privilege 15
{% for ssh_key in ssh_keys_root %}
crypto key pubkey-chain ssh user-key "root" rsa
key-string row "{{ ssh_key }}"
exit
{% endfor %}
no application install hiveagent
no application install SupportAssist
ip telnet server disable
no ip http server
no snmp-server enable traps
no snmp-server enable traps all
enable password {{ ansible_become_password }}
end
write
|