summaryrefslogtreecommitdiff
path: root/test/integration/targets/eos_config/tests/eapi/save.yaml
blob: 1cbd4f8026aa243ba3cfd56a1403334d46fe576c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
- debug: msg="START eapi/save.yaml"

- name: setup
  eos_config:
    commands:
      - no description
      - no shutdown
    parents:
      - interface Ethernet5
    match: none
    provider: "{{ eapi }}"


- name: save config
  eos_config:
    save: true
    provider: "{{ eapi }}"
  register: result

- assert:
    that:
      - "result.changed == true"

- name: save should always run
  eos_config:
    save: true
    provider: "{{ eapi }}"
  register: result

- assert:
    that:
      - "result.changed == true"

- debug: msg="END eapi/save.yaml"