Users Guide

Table Of Contents
4.
$ cd AnsibleOS10/
$ vim inventory.yaml
5. inventory.yaml IP
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. host_vars
$ mkdir host_vars
7. host_vars/OS10switch-1.yaml
$ 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
state: present
dellos_users:
- username: u1
password: Test@1347
role: sysadmin
privilege: 0
state: present
dellos_ntp:
server:
- ip: 3.3.3.3
dellos_cfg_generate Ansible
build_dir
OS10
101