diff --git a/test/integration/targets/vyos_config/tests/cli/simple.yaml b/test/integration/targets/vyos_config/tests/cli/simple.yaml index 376d0b94bbd..d9185affa8b 100644 --- a/test/integration/targets/vyos_config/tests/cli/simple.yaml +++ b/test/integration/targets/vyos_config/tests/cli/simple.yaml @@ -25,6 +25,12 @@ that: - "result.changed == false" +- name: Delete services + vyos_config: &del + lines: + - delete service lldp + - delete protocols static + - name: Configuring when commands starts with whitespaces vyos_config: src: "{{ role_path }}/tests/cli/config.cfg" @@ -36,18 +42,8 @@ - '"set service lldp" in result.commands' - '"set protocols static" in result.commands' -- name: Delete description - vyos_config: - lines: - - delete service lldp - - delete protocols static - register: result - -- assert: - that: - - "result.changed == true" - - '"delete service lldp" in result.commands' - - '"delete protocols static" in result.commands' +- name: Delete services + vyos_config: *del - name: teardown vyos_config: