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.
33 lines
635 B
YAML
33 lines
635 B
YAML
8 years ago
|
---
|
||
7 years ago
|
- debug: msg="START {{ connection.transport }}/set_state_absent.yaml"
|
||
8 years ago
|
|
||
|
- name: setup
|
||
|
nxos_config:
|
||
|
lines:
|
||
|
- interface Loopback1
|
||
7 years ago
|
provider: "{{ connection }}"
|
||
8 years ago
|
|
||
|
- name: set state=absent
|
||
|
nxos_interface:
|
||
|
interface: Loopback1
|
||
|
state: absent
|
||
7 years ago
|
provider: "{{ connection }}"
|
||
7 years ago
|
register: result
|
||
8 years ago
|
|
||
|
- assert:
|
||
|
that:
|
||
|
- "result.changed == true"
|
||
|
|
||
|
- name: verify state=absent
|
||
|
nxos_interface:
|
||
|
interface: Loopback1
|
||
|
state: absent
|
||
7 years ago
|
provider: "{{ connection }}"
|
||
7 years ago
|
register: result
|
||
8 years ago
|
|
||
|
- assert:
|
||
|
that:
|
||
|
- "result.changed == false"
|
||
|
|
||
7 years ago
|
- debug: msg="END {{ connection.transport }}/set_state_absent.yaml"
|