make show-changed show better

This commit is contained in:
Seth Vidal 2013-07-03 22:54:16 +00:00
parent 1efa8496d5
commit f6e3a85a0a
2 changed files with 11 additions and 4 deletions

View file

@ -31,8 +31,12 @@ do
if [ "$verbose" == 'yes' ]; then
echo $json| python -m json.tool
else
echo $json| /srv/web/infra/ansible/scripts/keyreturn task_userid
echo $json| /srv/web/infra/ansible/scripts/keyreturn cmd
for term in task_userid cmd task_args task_module; do
echo $json| /srv/web/infra/ansible/scripts/keyreturn $term 2>/dev/null >&2
if [ $? == 0 ]; then
echo $json| /srv/web/infra/ansible/scripts/keyreturn $term
fi
done
fi
fi
done