--- - debug: msg: START vyos_ha rtt integration tests on connection={{ ansible_connection }} - include_tasks: _remove_config.yaml - block: - name: RTT Merge the provided configuration with the existing running configuration register: baseconfig vyos.vyos.vyos_ha: config: "{{ merged.config }}" state: merged - vyos.vyos.vyos_facts: gather_network_resources: ha - assert: that: - baseconfig.changed == true - baseconfig.commands|symmetric_difference(rtt.commands) == [] - "baseconfig.after == ansible_facts['network_resources']['ha']" - name: RTT Merge the existing configuration with the provided running configuration register: result vyos.vyos.vyos_ha: config: "{{ rtt.config }}" - name: RTT Revert back to base config using facts round trip register: revert vyos.vyos.vyos_ha: config: "{{ ansible_facts['network_resources']['ha'] }}" state: overridden - name: RTT Assert that config was reverted assert: that: baseconfig.after == revert.after always: - include_tasks: _remove_config.yaml