--- - name: IOS BGP route map parse hosts: all tasks: - name: Parse the provided configuration with the existing running configuration cisco.ios.ios_route_maps: running_config: "{{ lookup('file', 'ios_bgp_route_map.txt') }}" state: parsed register: parsed - name: print YAML configuration debug: var: parsed.parsed | to_yaml