---
- debug: msg="START cli_config/cli_exact_match.yaml on connection={{ ansible_connection }}"

- name: setup - remove configuration
  cli_config:
    config: "{{ lookup('template', 'basic/setupexact.j2') }}"
    diff_match: none

- name: configure using exact match
  cli_config:
    config: "{{ lookup('template', 'basic/configexact1.j2') }}"
    diff_match: exact
  register: result

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

- name: check using exact match
  cli_config:
    config: "{{ lookup('template', 'basic/configexact2.j2') }}"
  register: result

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

- name: teardown
  cli_config:
    config: no ip access-list test
    diff_match: none

- debug: msg="END cli_config/cli_exact_match.yaml on connection={{ ansible_connection }}"
