mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
771 B
YAML
31 lines
771 B
YAML
7 years ago
|
---
|
||
|
- debug: msg="START junos netconf/net_vlan.yaml on connection={{ ansible_connection }}"
|
||
|
|
||
|
# Add minimal testcase to check args are passed correctly to
|
||
|
# implementation module and module run is successful.
|
||
|
|
||
|
- name: setup - remove vlan
|
||
|
net_vlan:
|
||
|
name: test-vlan
|
||
|
description: test vlan
|
||
|
state: absent
|
||
|
provider: "{{ netconf }}"
|
||
|
|
||
|
- name: Create vlan using platform agnostic vlan module
|
||
|
net_vlan:
|
||
|
vlan_id: 100
|
||
|
name: test-vlan
|
||
|
state: present
|
||
|
description: test vlan
|
||
|
provider: "{{ netconf }}"
|
||
|
register: result
|
||
|
|
||
|
- name: teardown - remove vlan
|
||
|
net_vlan:
|
||
|
name: test-vlan
|
||
|
description: test vlan
|
||
|
state: absent
|
||
|
provider: "{{ netconf }}"
|
||
|
|
||
|
- debug: msg="END junos netconf/net_vlan.yaml on connection={{ ansible_connection }}"
|