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.
61 lines
1.0 KiB
YAML
61 lines
1.0 KiB
YAML
8 years ago
|
---
|
||
7 years ago
|
- debug: msg="START {{ connection.transport }}/configure.yaml"
|
||
8 years ago
|
|
||
|
- name: setup
|
||
|
nxos_config:
|
||
7 years ago
|
lines: no feature bgp
|
||
8 years ago
|
match: none
|
||
7 years ago
|
provider: "{{ connection }}"
|
||
8 years ago
|
|
||
7 years ago
|
- name: enable bgp
|
||
8 years ago
|
nxos_feature:
|
||
7 years ago
|
feature: bgp
|
||
8 years ago
|
state: enabled
|
||
7 years ago
|
provider: "{{ connection }}"
|
||
8 years ago
|
register: result
|
||
|
|
||
|
- assert:
|
||
|
that:
|
||
|
- "result.changed == true"
|
||
|
|
||
7 years ago
|
- name: verify bgp
|
||
8 years ago
|
nxos_feature:
|
||
7 years ago
|
feature: bgp
|
||
8 years ago
|
state: enabled
|
||
7 years ago
|
provider: "{{ connection }}"
|
||
8 years ago
|
register: result
|
||
|
|
||
|
- assert:
|
||
|
that:
|
||
|
- "result.changed == false"
|
||
|
|
||
7 years ago
|
- name: disable bgp
|
||
8 years ago
|
nxos_feature:
|
||
7 years ago
|
feature: bgp
|
||
8 years ago
|
state: disabled
|
||
7 years ago
|
provider: "{{ connection }}"
|
||
8 years ago
|
register: result
|
||
|
|
||
|
- assert:
|
||
|
that:
|
||
|
- "result.changed == true"
|
||
|
|
||
7 years ago
|
- name: verify bgp
|
||
8 years ago
|
nxos_feature:
|
||
7 years ago
|
feature: bgp
|
||
8 years ago
|
state: disabled
|
||
7 years ago
|
provider: "{{ connection }}"
|
||
8 years ago
|
register: result
|
||
|
|
||
|
- assert:
|
||
|
that:
|
||
|
- "result.changed == false"
|
||
|
|
||
|
- name: teardown
|
||
|
nxos_config:
|
||
7 years ago
|
lines: no feature bgp
|
||
8 years ago
|
match: none
|
||
7 years ago
|
provider: "{{ connection }}"
|
||
8 years ago
|
|
||
7 years ago
|
- debug: msg="END {{ connection.transport }}/configure.yaml"
|