--- - hosts: nokia gather_facts: no connection: local vars: cli: host: "{{ inventory_hostname }}" username: admin password: admin transport: cli tasks: - name: GLOBAL / check RIB sros_command: commands: - show router route-table provider: "{{ cli }}" register: temp_var - debug: msg="{{ temp_var.stdout_lines }}" - name: VRF / check RIB sros_command: commands: - show router 100500 route-table provider: "{{ cli }}" register: temp_var - debug: msg="{{ temp_var.stdout_lines }}" ...