Files
ewnix-automation/roles/inventory/linode/tasks/main.yaml

12 lines
244 B
YAML

---
- 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'