Users Guide

Table Of Contents
User name and password
NTP server
Syslog server
1 Install Ansible on a controller node. You can nd the latest version of Ansible on the Ansible Installation Guide page.
You can run Ansible from any device with Python 2 (version 2.7) or Python 3 (version 3.5 or higher) installed, including Red Hat,
Debian, Ubuntu, CentOS, OS X, any of the BSDs and so on.
In this example, Ansible 2.7.12 is installed on an Ubuntu 16.04 virtual machine. To congure the Personal Package Archives (PPA)
repository on the controller node and install Ansible, run these commands:
sudo apt-get update
sudo apt-get install software-properties-common
sudo apt-add-repository --yes --update ppa:ansible/ansible
sudo apt-get install ansible
After you install Ansible, verify the version by entering:
$ ansible --version
2 Download and install Dell EMC Networking Ansible roles from the Ansible Galaxy web page; for example:
$ ansible-galaxy install dell-networking.dellos-users
$ ansible-galaxy install dell-networking.dellos-logging
$ ansible-galaxy install dell-networking.dellos-ntp
3 Create a directory to store inventory and playbook les; for example:
$ mkdir AnsibleOS10
4 Navigate to the directory and create an inventory le.
$ cd AnsibleOS10/
$ vim inventory.yaml
5 Add the IP address and OS for each switch in the inventory.yaml le. Enter the command for each switch on one command line.
OS10switch-1 ansible_host=192.168.1.203 ansible_network_os=dellos10
OS10switch-2 ansible_host=192.168.1.204 ansible_network_os=dellos10
6 Create a host_vars directory to use for switch-specic variable les.
$ mkdir host_vars
7 Create a host variable le; for example, host_vars/OS10switch-1.yaml. Then dene the host name and login credentials:
$ vim host_vars/OS10switch-1.yaml
hostname: OS10switch-1
dellos_cfg_generate: True
build_dir: /home/user/config
ansible_ssh_user: admin
ansible_ssh_pass: admin
dellos_logging:
logging:
- ip: 1.1.1.1
state: present
dellos_users:
- username: u1
password: test@2468
role: sysadmin
privilege: 0
state: present
dellos_ntp:
server:
- ip: 3.3.3.3
$ vim host_vars/OS10switch-2.yaml
hostname: OS10switch-2
108
OS10 provisioning