feat(ansible): add role for variable debugging

This commit is contained in:
Stephan Lüscher 2024-05-03 14:03:46 +00:00
parent 9f1d816d57
commit a2a37bd54c
No known key found for this signature in database
GPG key ID: 445779060FF3D3CF
3 changed files with 61 additions and 0 deletions

View file

@ -0,0 +1,13 @@
---
# main task file for this role
- name: DEBUG | forge variables
ansible.builtin.debug:
msg: "{{ item }}: {{ lookup('ansible.builtin.vars', item) }}"
verbosity: 1
loop: "{{ __forge_vars_used }}"
loop_control:
extended: true
label: "{{ ansible_loop.index }}/{{ ansible_loop.length }}"
vars:
__forge_vars_used: "{{ lookup('ansible.builtin.varnames', forge_debug_vars_regex_search, wantlist=true) }}"