af3603f9ee
While this does properly pass our testing for ansible/ansible devel
branch, it is currently breaking our collection testing for 2.10.
Specifically, this would mean ansible.netcommon would need to directly
import arista.eos or cisco.nxos collections, causing a circular dependency.
This reverts commit e266e5f8b6
.
21 lines
491 B
YAML
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) == []"
|