--- - hosts: cisco gather_facts: no connection: local vars: cli: host: "{{ inventory_hostname }}" username: cisco password: cisco transport: cli tasks: - name: GLOBAL / check RIB iosxr_command: commands: - show route ipv4 provider: "{{ cli }}" register: temp_var - debug: msg="{{ temp_var.stdout_lines }}" - name: VRF / check RIB iosxr_command: commands: - show route vrf CUST_100500 ipv4 provider: "{{ cli }}" register: temp_var - debug: msg="{{ temp_var.stdout_lines }}" ...