# Registering a variable means storing the output of any task, ad-hoc command inside a another user defined variable so that it can be used efficiently and effectively --- - name: Registering variable hosts: nodes tasks: - name: Gathering output of all devices on managed hosts ans storing it in variable debug: msg: "{{ ansible_device_links }}" register: device - name: printing debug: var: device.msg.ids.sda ...