--- - debug: msg: "START vyos_firewall_interfaces gathered integration tests on connection={{ ansible_connection }}" - include_tasks: _remove_config.yaml - include_tasks: _remove_firewall_config.yaml - include_tasks: _populate_rule_sets.yaml - include_tasks: _populate.yaml - block: - name: Merge the provided configuration with the exisiting running configuration vyos_firewall_interfaces: &gathered config: state: gathered register: result - name: Assert that gathered dicts was correctly generated assert: that: - "{{ populate | symmetric_difference(result['gathered']) |length == 0 }}" - name: Gather the existing running configuration (IDEMPOTENT) vyos_firewall_interfaces: *gathered register: result - name: Assert that the previous task was idempotent assert: that: - "result['changed'] == false" always: - include_tasks: _remove_config.yaml - include_tasks: _remove_firewall_config.yaml