Rewrite the linode inventory stuff...this is a pain in the ass.

This commit is contained in:
2025-08-07 21:47:24 -05:00
parent 3942108d2d
commit a0ccc1fafc
9 changed files with 95 additions and 812 deletions

View File

@@ -1,14 +1,13 @@
---
# Internal variables for linode_inventory role
linode_inventory_script_path: "{{ role_path }}/files/linode_inventory.py"
temp_inventory_path: "{{ linode_inventory_output_dir }}/{{ linode_inventory_output_file }}"
# Linode API endpoint
linode_api_url: "https://api.linode.com/v4/linode/instances"
# Required environment variables
# Required environment variables
required_env_vars:
- LINODE_API_TOKEN
# Python packages required
python_requirements:
- requests
- json
# Default groups that will be created
default_groups:
- linode_all