summaryrefslogtreecommitdiff
path: root/test/integration/targets/eos_config/tests/eapi/src_basic.yaml
blob: bda5ffba9880c732c9c1c097aace787091b29725 (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
36
37
38
---
- debug: msg="START eapi/src_basic.yaml"

- name: setup
  eos_config:
    commands:
      - no description
      - no shutdown
    parents:
      - interface Ethernet2
    match: none
  become: yes

- name: configure device with config
  eos_config:
    src: basic/config.j2
  become: yes
  register: result

- assert:
    that:
      - "result.changed == true"
# https://github.com/ansible/ansible-modules-core/issues/4807
      - "result.updates is defined"

- name: check device with config
  eos_config:
    src: basic/config.j2
  become: yes
  register: result

- assert:
    that:
      - "result.changed == false"
# https://github.com/ansible/ansible-modules-core/issues/4807
      - "result.updates is not defined"

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