summaryrefslogtreecommitdiff
path: root/test/integration/targets/ios_system/tests/cli/set_domain_name.yaml
blob: 60a4659f65381ba3f6212b9b99997edb13adae72 (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
---
- debug: msg="START cli/set_domain_name.yaml on connection={{ ansible_connection }}"

- name: setup
  ios_config:
    lines: no ip domain-name
    match: none
    provider: "{{ cli }}"

- name: configure domain_name
  ios_system:
    domain_name: eng.ansible.com
    provider: "{{ cli }}"
  register: result

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

- name: verify domain_name
  ios_system:
    domain_name: eng.ansible.com
    provider: "{{ cli }}"
  register: result

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

- name: teardown
  ios_config:
    lines: no ip domain-name
    match: none
    provider: "{{ cli }}"

- debug: msg="END cli/set_domain_name.yaml on connection={{ ansible_connection }}"