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.
22 lines
491 B
YAML
22 lines
491 B
YAML
5 years ago
|
---
|
||
|
- 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) == []"
|