Os9 collection - readme updates (#7)
* addressing review comments for documentation
This commit is contained in:
parent
a552e93b5d
commit
b224562d5d
1 changed files with 30 additions and 27 deletions
57
README.md
57
README.md
|
@ -48,44 +48,47 @@ Ansible version 2.10 or later
|
||||||
|
|
||||||
**playbook.yaml**
|
**playbook.yaml**
|
||||||
|
|
||||||
- hosts: os9switches
|
```
|
||||||
connection: network_cli
|
- hosts: os9_switches
|
||||||
collections:
|
connection: network_cli
|
||||||
- dellemc.os9
|
collections:
|
||||||
roles:
|
- dellemc.os9
|
||||||
- os9_vlan
|
roles:
|
||||||
|
- os9_vlan
|
||||||
|
```
|
||||||
|
|
||||||
**host_vars/os9_sw1.yaml**
|
**host_vars/os9_sw1.yaml**
|
||||||
|
|
||||||
```
|
```
|
||||||
hostname: os9_sw1_
|
hostname: os9_sw1
|
||||||
# parameters for connection type network_cli
|
# parameters for connection type network_cli
|
||||||
ansible_ssh_user: xxxx
|
ansible_ssh_user: xxxx
|
||||||
ansible_ssh_pass: xxxx
|
ansible_ssh_pass: xxxx
|
||||||
ansible_network_os: dellemc.os9.os9
|
ansible_network_os: dellemc.os9.os9
|
||||||
|
|
||||||
#create vlan 100 and delete vlan 200
|
# Create vlan100 and delete vlan888
|
||||||
os9_vlan:
|
os9_vlan:
|
||||||
vlan 100:
|
vlan 100:
|
||||||
name: "test_vlan1"
|
description: "Blue"
|
||||||
description: "test1"
|
state: present
|
||||||
state: present
|
vlan 888:
|
||||||
vlan 200:
|
state: absent
|
||||||
name: "test_vlan2"
|
|
||||||
description: "test2"
|
|
||||||
state: absent
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
**inventory.yaml**
|
**inventory.yaml**
|
||||||
|
|
||||||
```
|
```
|
||||||
os9_sw1 ansible_host=100.104.28.119
|
[os9_sw1]
|
||||||
os9_sw2 ansible_host=100.104.28.118
|
os9_sw1 ansible_host=100.104.28.119
|
||||||
|
|
||||||
|
[os9_sw2]
|
||||||
|
os9_sw2 ansible_host=100.104.28.118
|
||||||
|
|
||||||
[os9switches]
|
[os9_switches:children]
|
||||||
os9_sw1
|
os9_sw1
|
||||||
os9_sw2
|
os9_sw2
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue