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.
ansible/test/integration/targets/nxos_interface/tests/common/set_state_absent.yaml

33 lines
635 B
YAML

---
- debug: msg="START {{ connection.transport }}/set_state_absent.yaml"
- name: setup
nxos_config:
lines:
- interface Loopback1
provider: "{{ connection }}"
- name: set state=absent
nxos_interface:
interface: Loopback1
state: absent
provider: "{{ connection }}"
register: result
- assert:
that:
- "result.changed == true"
- name: verify state=absent
nxos_interface:
interface: Loopback1
state: absent
provider: "{{ connection }}"
register: result
- assert:
that:
- "result.changed == false"
- debug: msg="END {{ connection.transport }}/set_state_absent.yaml"