You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/nxos_config/tests/cli_config/cli_block_replace.yaml

31 lines
677 B
YAML

---
- debug: msg="START cli_config/cli_block_replace.yaml on connection={{ ansible_connection }}"
- name: setup - remove configuration
cli_config: &rm
config: "no ip access-list test"
diff_match: none
- name: block replace
cli_config: &block
config: "{{ lookup('template', 'basic/configblock.j2') }}"
diff_replace: block
register: result
- assert:
that:
- "result.changed == true"
- name: block replace (Idempotence)
cli_config: *block
register: result
- assert:
that:
- "result.changed == false"
- name: teardown
cli_config: *rm
- debug: msg="END cli_config/cli_block_replace.yaml on connection={{ ansible_connection }}"