2016-10-28 20:50:29 +02:00
|
|
|
---
|
|
|
|
- debug: msg="START eapi/save.yaml"
|
|
|
|
|
|
|
|
- name: setup
|
|
|
|
eos_config:
|
|
|
|
commands:
|
|
|
|
- no description
|
|
|
|
- no shutdown
|
|
|
|
parents:
|
2017-07-12 09:25:26 +02:00
|
|
|
- interface Ethernet2
|
2016-10-28 20:50:29 +02:00
|
|
|
match: none
|
|
|
|
provider: "{{ eapi }}"
|
|
|
|
|
|
|
|
|
|
|
|
- name: save config
|
|
|
|
eos_config:
|
2017-07-14 16:15:23 +02:00
|
|
|
save_when: always
|
2016-10-28 20:50:29 +02:00
|
|
|
provider: "{{ eapi }}"
|
|
|
|
register: result
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
that:
|
|
|
|
- "result.changed == true"
|
|
|
|
|
|
|
|
- name: save should always run
|
|
|
|
eos_config:
|
2017-07-14 16:15:23 +02:00
|
|
|
save_when: always
|
2016-10-28 20:50:29 +02:00
|
|
|
provider: "{{ eapi }}"
|
|
|
|
register: result
|
|
|
|
|
|
|
|
- assert:
|
|
|
|
that:
|
|
|
|
- "result.changed == true"
|
|
|
|
|
|
|
|
- debug: msg="END eapi/save.yaml"
|