2016-10-28 18:50:29 +00:00
|
|
|
---
|
|
|
|
- debug: msg="START eapi/save.yaml"
|
|
|
|
|
|
|
|
- name: setup
|
|
|
|
eos_config:
|
|
|
|
commands:
|
|
|
|
- no description
|
|
|
|
- no shutdown
|
|
|
|
parents:
|
2017-07-12 07:25:26 +00:00
|
|
|
- interface Ethernet2
|
2016-10-28 18:50:29 +00:00
|
|
|
match: none
|
2018-05-29 18:18:03 +00:00
|
|
|
become: yes
|
2016-10-28 18:50:29 +00:00
|
|
|
|
|
|
|
|
2018-05-29 18:18:03 +00:00
|
|
|
- name: save config always
|
|
|
|
eos_config: &always
|
2017-07-14 14:15:23 +00:00
|
|
|
save_when: always
|
2018-05-29 18:18:03 +00:00
|
|
|
become: yes
|
2016-10-28 18:50:29 +00:00
|
|
|
register: result
|
|
|
|
|
2018-05-29 18:18:03 +00:00
|
|
|
- assert: &changed
|
2016-10-28 18:50:29 +00:00
|
|
|
that:
|
|
|
|
- "result.changed == true"
|
|
|
|
|
|
|
|
- name: save should always run
|
2018-05-29 18:18:03 +00:00
|
|
|
eos_config: *always
|
|
|
|
become: yes
|
2016-10-28 18:50:29 +00:00
|
|
|
register: result
|
|
|
|
|
2018-05-29 18:18:03 +00:00
|
|
|
- assert: *changed
|
2016-10-28 18:50:29 +00:00
|
|
|
|
|
|
|
- debug: msg="END eapi/save.yaml"
|