summaryrefslogtreecommitdiff
path: root/test/integration/targets/asa_config/tests/cli/basic.yaml
blob: 2c7450f3d216f6936d41fc0f513406e6c1c8e164 (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
39
---
- debug: msg="START cli/basic.yaml"

- name: setup
  asa_config:
    commands:
      - no object-group network OG-ANSIBLE-TEMPLATE
    provider: "{{ cli }}"
  ignore_errors: yes

- name: configure device with config
  asa_config:
    src: basic/config.j2
    provider: "{{ cli }}"
  register: result

- assert:
    that:
      - "result.changed == true"
      - "result.updates is defined"

- name: check device with config
  asa_config:
    src: basic/config.j2
    provider: "{{ cli }}"
  register: result

- assert:
    that:
      - "result.changed == false"
      - "result.updates is not defined"

- name: teardown
  asa_config:
    commands:
      - no object-group network OG-ANSIBLE-TEMPLATE
    provider: "{{ cli }}"

- debug: msg="END cli/basic.yaml"