--- - debug: msg: START vyos_interfaces gathered integration tests on connection={{ ansible_connection }} - include_tasks: _remove_config.yaml - include_tasks: _populate_config.yaml - block: - name: Gather interface configuration register: result vyos.rest.vyos_interfaces: state: gathered - assert: that: - result.changed == false - result.gathered | selectattr('name', 'eq', 'eth0') | list | length == 1 - result.gathered | selectattr('name', 'eq', 'eth0') | map(attribute='description') | first == 'Ansible test interface' always: - include_tasks: _remove_config.yaml