--- - name: Get Linode inventory using local module linode_inventory: register: linode_result - name: Write inventory to file copy: dest: /tmp/linode_inventory.json content: "{{ linode_result | to_nice_json }}" mode: '0644'