mirror of
https://github.com/ublue-os/forge.git
synced 2025-07-05 09:15:45 +03:00
feat(ansible): add role for variable debugging
This commit is contained in:
parent
9f1d816d57
commit
a2a37bd54c
3 changed files with 61 additions and 0 deletions
13
ansible/roles/debug_forge_vars/tasks/main.yml
Normal file
13
ansible/roles/debug_forge_vars/tasks/main.yml
Normal 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) }}"
|
Loading…
Add table
Add a link
Reference in a new issue