ansible/test/integration/targets/eos_vlans/tests/cli/idempotent.yaml
Paul Belanger c3635532d3
Revert "Allow httpapi for EOS resource modules (#66871)" (#67131)
This looks to be causing issues for our new ansible.netcommon
collection. Revert for now, until we can properly address.

This reverts commit 53c7f8cbde.
2020-02-06 10:20:08 -05:00

21 lines
491 B
YAML

---
- eos_facts:
gather_network_resources: vlans
become: yes
- name: Ensures that facts are idempotent through replace
eos_vlans:
config: "{{ ansible_facts.network_resources.vlans }}"
state: replaced
register: result
become: yes
- eos_facts:
gather_network_resources: vlans
become: yes
- assert:
that:
- "result.changed == False"
- "result.commands == []"
- "ansible_facts.network_resources.vlans|symmetric_difference(result.before) == []"