Users Guide

Table Of Contents
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 files; for example:
$ mkdir AnsibleOS10
4. Navigate to the directory and create an inventory file.
$ cd AnsibleOS10/
$ vim inventory.yaml
5. Add the IP address and OS for each switch in the inventory.yaml file. 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-specific variable files.
$ mkdir host_vars
7. Create a host variable file; for example, host_vars/OS10switch-1.yaml. Then define 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
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
112
Dell EMC SmartFabric OS10 provisioning