- name: "AUDIT: Force Dump of ALL Environment Keys"
ansible.builtin.debug:
msg: "{{ query('varnames', '.+') | select('match', '^ansible_env$|^environment$') | list }}"
# If the above is too complex, try the most direct Python-style dump:
- name: "AUDIT: The 'Brute Force' Python Env Dump"
ansible.builtin.debug:
msg: "{{ lookup('vars', 'ansible_env') }}"
ignore_errors: yes
- name: "AUDIT: The 'Direct Plugin' Dump"
ansible.builtin.debug:
msg: "{{ lookup('env', 'PATH') }} is visible, but can I see everything? {{ lookup('dict', ansible_env) }}"
ignore_errors: yes
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)