From 18f49ceed80e0c952cc2c0411a87982581af1dbd Mon Sep 17 00:00:00 2001 From: Kevin Thompson Date: Thu, 7 Aug 2025 21:30:11 -0500 Subject: [PATCH] Let's see if linode.cloud is actually installed in the Linode EE like it's supposed to be.. --- playbooks/inventory/debug_collections.yml | 33 +++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 playbooks/inventory/debug_collections.yml diff --git a/playbooks/inventory/debug_collections.yml b/playbooks/inventory/debug_collections.yml new file mode 100644 index 0000000..4d21b2c --- /dev/null +++ b/playbooks/inventory/debug_collections.yml @@ -0,0 +1,33 @@ +--- +- name: Debug Collections in Execution Environment + hosts: localhost + gather_facts: false + tasks: + - name: Check installed collections + ansible.builtin.shell: | + echo "=== Ansible Collections Info ===" + ansible-galaxy collection list + echo "" + echo "=== Specific Linode Collection Check ===" + ansible-galaxy collection list | grep -i linode || echo "No Linode collections found" + echo "" + echo "=== Collection Paths ===" + python3 -c " + import ansible.plugins.inventory + print('Inventory plugin paths:', ansible.plugins.inventory.__path__) + " + echo "" + echo "=== Try to import linode.cloud ===" + python3 -c " + try: + from ansible_collections.linode.cloud.plugins.inventory.inventory import InventoryModule + print('linode.cloud.inventory plugin found!') + except ImportError as e: + print(f'Import error: {e}') + " + register: collection_debug + ignore_errors: true + + - name: Display collection debug info + ansible.builtin.debug: + var: collection_debug.stdout_lines