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

35 lines
748 B
YAML

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