Users Guide

Table Of Contents
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
The dellos_cfg_generate parameter creates a local copy of the conguration commands applied to the remote switch on the
Ansible controller node, and saves the commands in the directory dened in the build_dir path.
8 Create a playbook le.
$ vim playbook.yaml
- hosts: OS10switch-1 OS10switch-2
connection: network_cli
roles:
- dell-networking.dellos-logging
- dell-networking.dellos-users
- dell-networking.dellos-ntp
To check the syntax of a playbook, use the ansible-playbook command with the --syntax-check ag. This command runs
the playbook le through the parser to ensure that its included les, roles, and other parameters have no syntax problems.
9 Run the playbook le. In the ansible-playbook command, the inventory and playbook les are mandatory entries. The play recap
displays the results of the provisioning session; for example:
$ ansible-playbook -i inventory.yaml playbook.yaml
...
...
...
PLAY RECAP
***************************************************************
OS10switch-1: ok=7 changed=6 unreachable=0 failed=0
OS10switch-2: ok=7 changed=6 unreachable=0 failed=0
OS10 provisioning
109