Assuming the below tasks:
shell: \"some_script.sh\"
register: \"some_script_result\"
debug:
msg: \"Output: {{ some_script_result.stdout_li
Another option:
https://blog.alexgittings.com/improving-the-ansible-output-with-anstomlog/
just store it inside ansible/ansible.cfg
➜ tree ansible
ansible
├── ansible.cfg
├── callbacks
│ ├── anstomlog.py
└── playbooks
└── nginx.yaml
ANSIBLE_CONFIG=ansible/ansible.cfg ansible-playbook -u centos --private-key .ssh/key -i `terraform output bastion_ip`, ansible/playbooks/nginx.yaml