DellEMC OS9/OS10/OS6 prepare for Ansible

Switch Side

For OS6 (N-Series)

You do create a default account via the console line

console(config)# username admin password yourpassword 
console(config)# enable password yourpassword

Set a management ip, using the OOB.

console(config)# username admin password yourpassword
console(config)# enable password yourpassword
console(config)# interface  out-of-band
console(conf-if)# ip address xxx.xxx.xxx.xxx 255.255.255.0 ip.of.your.gw
console(conf-if)# exit
console(config)# ip ssh  server

and enable ssh server

console(config)# ip ssh server

For OS9

Adding an account

OS9(conf)#username ansible password xxxx privilege 15

Set a management ip

OS9(conf)#interface managementethernet 0/0
OS9(conf-if-ma-0/0)#ip address xxx.xxx.xxx.xxx/xx
OS9(conf-if-ma-0/0)#no shutdown
OS9(conf-if-ma-0/0)#exit

Enabling SSH

OS9(conf)#ip ssh server enable

Ansible use SSH to sent order, set rate limit to pretect againt “Ansible DDos”.

OS9(conf)#ip ssh connection-rate-limit 60

For OS10

By default account is (admin/admin), and ssh is enable

Prefered create a “ansible” account

OS10(config)# username ansible password ansiblepassword

Set a management ip

OS10(conf)#interface mgmt 1/1/1
OS10(conf-if-ma-1/1/1)#no ip dhcp
OS10(conf-if-ma-1/1/1)#ip address xxx.xxx.xxx.xxx/xx
OS10(conf-if-ma-1/1/1)#no shutdown
OS10(conf-if-ma-1/1/1)#exit
OS10(conf)# do commit

First test with Ansible (some script exist on github). Download and check your setting
https://github.com/Dell-Networking/ansible-dellos-examples

You can also find some extend scripts (building a clos fabric / Upgrade Switch…) all this exemple can be find on github.
https://github.com/Dell-Networking

DellEMC Networking and Ansible

Sources:
http://docs.ansible.com/ansible/latest/intro_installation.html#latest-releases-via-apt-ubuntu
https://galaxy.ansible.com/Dell-Networking/
https://ansible-dellos-docs.readthedocs.io/en/latest/install.html

Ansible installation under an Ubuntu Server or Debian  – “Fresh Install”

$ sudo apt-get update
$ sudo apt-get install software-properties-common
$ sudo apt-add-repository ppa:ansible/ansible
$ sudo apt-get update 
$ sudo apt-get install ansible

After the installation, you do create a file with role srequire to be install and enabled. Not all are necessary…but if you want enable all module by default, you can copy past this one. This install latest role for OS6/OS9/OS10

$ vi dellemc_roles.txt
Dell-Networking.dellos-aaa
Dell-Networking.dellos-acl
Dell-Networking.dellos-bgp
Dell-Networking.dellos-copy-config
Dell-Networking.dellos-dcb
Dell-Networking.dellos-dns
Dell-Networking.dellos-ecmp
Dell-Networking.dellos-flow-monitor
Dell-Networking.dellos-image-upgrade
Dell-Networking.dellos-interface
Dell-Networking.dellos-lag
Dell-Networking.dellos-lldp
Dell-Networking.dellos-logging
Dell-Networking.dellos-ntp
Dell-Networking.dellos-prefix-list
Dell-Networking.dellos-qos
Dell-Networking.dellos-route-map
Dell-Networking.dellos-sflow
Dell-Networking.dellos-snmp
Dell-Networking.dellos-system
Dell-Networking.dellos-users
Dell-Networking.dellos-vlan
Dell-Networking.dellos-vlt
Dell-Networking.dellos-vrf
Dell-Networking.dellos-vrrp
Dell-Networking.dellos-xstp
Dell-Networking.dellos_vxlan
Dell-Networking.dellos_bfd
Dell-Networking.dellos_uplink
Dell-Networking.dellos_fabric_summary
Dell-Networking.dellos_network_validation

Install roles files

$ sudo ansible-galaxy install –r dellemc_roles.txt

For more details and support platform for each role.
https://ansible-dellos-docs.readthedocs.io/en/latest/roles.html