Alan Rominger 2 weeks ago committed by GitHub
commit e688a913cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,2 @@
bugfixes:
- "Fixed it so that debug tasks using var option will no longer show loop control variables."

@ -425,6 +425,11 @@ class CallbackBase(AnsiblePlugin):
# 'var' value as field, so eliminate others and what is left should be varname
for hidme in self._hide_in_debug:
result.pop(hidme, None)
# when using loop control, remove these vars in addition to the var they reference
for control_var in ('ansible_loop_var', 'ansible_index_var'):
if control_var in result:
loop_var = result.pop(control_var)
result.pop(loop_var, None)
def _print_task_path(self, task, color=C.COLOR_DEBUG):
path = task.get_path()

Loading…
Cancel
Save