ci(molecule): DEBUG print which mortis.kamino copy a scenario loads
Build / build (pull_request) Successful in 15s
Lint / lint (pull_request) Successful in 1m1s
Molecule / molecule (pull_request) Successful in 32s

Throwaway for #355; never merged.

Assisted-by: Claude Code
This commit is contained in:
Defame1297 committed 2026-11-24 15:40:58 +00:00
1 parent fcd331be06
commit cb4c8ee9df
2 files changed
+31

No files matched your search

+26
View File
@@ -1,4 +1,30 @@
---
- name: Show which mortis.kamino copy this run loads
hosts: all
gather_facts: false
run_once: true
tasks:
- name: Print the controller's collection paths and the copy that resolves first
delegate_to: localhost
ansible.builtin.debug:
msg:
- "AC_ROOT={{ lookup('ansible.builtin.env', 'AC_ROOT') }}"
- "ANSIBLE_HOME={{ lookup('ansible.builtin.env', 'ANSIBLE_HOME') }}"
- "env ANSIBLE_COLLECTIONS_PATH={{ lookup('ansible.builtin.env', 'ANSIBLE_COLLECTIONS_PATH') }}"
- "config COLLECTIONS_PATHS={{ lookup('ansible.builtin.config', 'COLLECTIONS_PATHS') }}"
- "{{ lookup('ansible.builtin.pipe', 'ansible-galaxy collection list mortis.kamino 2>&1') }}"
- "{{ lookup('ansible.builtin.pipe', 'ls -d \"$ANSIBLE_HOME\"/collections/ansible_collections/mortis/kamino 2>&1') }}"
- name: Print the role_path of a loaded mortis.kamino role
hosts: all
gather_facts: false
run_once: true
tasks:
- name: Load the role's validation entry point only
ansible.builtin.include_role:
name: mortis.kamino.sshd
tasks_from: __debug_role_path
# The production profile: Ubuntu 24.04 LXCs. Only the profile name and the user are supplied.
- name: Converge the role with a valid profile
hosts: all
+5
View File
@@ -0,0 +1,5 @@
---
# DEBUG for #355, never merged.
- name: Print the directory this role was loaded from
ansible.builtin.debug:
var: role_path