`
TASK [debug] *********************************************************************************************************************************************************************************
ok: [as2] => (item={‘_ansible_parsed’: True, ‘stderr_lines’: , u’changed’: True, u’stdout’: u’189G’, ‘_ansible_item_result’: True, u’delta’: u’0:00:00.014604’, ‘stdout_lines’: [u’189G’], ’
_ansible_item_label’: u’tomcat-as2’, u’end’: u’2019-07-27 12:33:45.592563’, ‘_ansible_no_log’: False, ‘failed’: False, u’cmd’: u’du -h “tomcat-as2/logs” | awk '{print $1}'‘, ‘item’: u’tomc
at-as2’, u’stderr’: u’‘, u’rc’: 0, u’invocation’: {u’module_args’: {u’warn’: True, u’executable’: None, u’_uses_shell’: True, u’_raw_params’: u’du -h “tomcat-as2/logs” | awk '{print $1}'‘,
u’removes’: None, u’argv’: None, u’creates’: None, u’chdir’: None, u’stdin’: None}}, u’start’: u’2019-07-27 12:33:45.577959’, ‘_ansible_ignore_errors’: None}) => {
“msg”: “tomcat-as2/logs = 189G”
}
ok: [as2] => (item={‘_ansible_parsed’: True, ‘stderr_lines’: , u’changed’: True, u’stdout’: u’31G’, ‘_ansible_item_result’: True, u’delta’: u’0:00:00.016055’, ‘stdout_lines’: [u’31G’], ‘_a
nsible_item_label’: u’tomcat-gw2’, u’end’: u’2019-07-27 12:33:45.961107’, ‘_ansible_no_log’: False, ‘failed’: False, u’cmd’: u’du -h “tomcat-gw2/logs” | awk '{print $1}'‘, ‘item’: u’tomcat
-gw2’, u’stderr’: u’‘, u’rc’: 0, u’invocation’: {u’module_args’: {u’warn’: True, u’executable’: None, u’_uses_shell’: True, u’_raw_params’: u’du -h “tomcat-gw2/logs” | awk '{print $1}'‘, u
‘removes’: None, u’argv’: None, u’creates’: None, u’chdir’: None, u’stdin’: None}}, u’start’: u’2019-07-27 12:33:45.945052’, ‘_ansible_ignore_errors’: None}) => {
“msg”: “tomcat-gw2/logs = 31G”
}
ok: [as2] => (item={‘_ansible_parsed’: True, ‘stderr_lines’: , u’changed’: True, u’stdout’: u’2.3G’, ‘_ansible_item_result’: True, u’delta’: u’0:00:00.013730’, ‘stdout_lines’: [u’2.3G’], ’
_ansible_item_label’: u’tomcat-staging’, u’end’: u’2019-07-27 12:33:46.283170’, ‘_ansible_no_log’: False, ‘failed’: False, u’cmd’: u’du -h “tomcat-staging/logs” | awk '{print $1}'‘, ‘item’
: u’tomcat-staging’, u’stderr’: u’‘, u’rc’: 0, u’invocation’: {u’module_args’: {u’warn’: True, u’executable’: None, u’_uses_shell’: True, u’_raw_params’: u’du -h “tomcat-staging/logs” | awk
'{print $1}'‘, u’removes’: None, u’argv’: None, u’creates’: None, u’chdir’: None, u’stdin’: None}}, u’start’: u’2019-07-27 12:33:46.269440’, ‘_ansible_ignore_errors’: None}) => {
“msg”: “tomcat-staging/logs = 2.3G”
}
ok: [as2] => (item={‘_ansible_parsed’: True, ‘stderr_lines’: , u’changed’: True, u’stdout’: u’131G’, ‘_ansible_item_result’: True, u’delta’: u’0:00:00.013226’, ‘stdout_lines’: [u’131G’], ’
_ansible_item_label’: u’tomcat-as7’, u’end’: u’2019-07-27 12:33:46.656400’, ‘_ansible_no_log’: False, ‘failed’: False, u’cmd’: u’du -h “tomcat-as7/logs” | awk '{print $1}'‘, ‘item’: u’tomc
at-as7’, u’stderr’: u’‘, u’rc’: 0, u’invocation’: {u’module_args’: {u’warn’: True, u’executable’: None, u’_uses_shell’: True, u’_raw_params’: u’du -h “tomcat-as7/logs” | awk '{print $1}'‘,
u’removes’: None, u’argv’: None, u’creates’: None, u’chdir’: None, u’stdin’: None}}, u’start’: u’2019-07-27 12:33:46.643174’, ‘_ansible_ignore_errors’: None}) => {
“msg”: “tomcat-as7/logs = 131G”
}
`
Tried some callback plugins. Doesn’t really work. I swear I’ve done this before, but I admittedly have not touched ansible in a while. Would filtering the loop in the the debug task in some way do what I need ?