---
- name: "Deploy COMET Application"
hosts: all
gather_facts: yes # <--- THIS IS THE REQUIRED SETTING
roles:
- discovery
- deployment
==================
# --- START OF AUDIT SECTION ---
- name: "AUDIT: Immediate Environment Report"
block:
- name: "GATHER: Capture Runner Env (Control Node)"
ansible.builtin.set_fact:
control_node_env: "{{ lookup('env', '.*', wantlist=True) }}"
run_once: true
delegate_to: localhost
- name: "REPORT: Runner Environment (Harness/Tekton)"
ansible.builtin.debug:
msg:
- "--- START RUNNER ENV DUMP ---"
- "{{ control_node_env }}"
- "--- END RUNNER ENV DUMP ---"
run_once: true
delegate_to: localhost
- name: "REPORT: Remote Server Environment (Target Host)"
ansible.builtin.debug:
msg:
- "--- START REMOTE SERVER ENV DUMP ---"
- "Host: {{ inventory_hostname }}"
- "Detected PATH: {{ ansible_env.PATH | default('N/A') }}"
- "Full Remote Env: {{ ansible_env }}"
- "--- END REMOTE SERVER ENV DUMP ---"
tags: [always, audit]
# --- END OF AUDIT SECTION ---
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)