============================
If you pass the -v flag to ansible-playbook on the command line, you'll see the stdout and stderr for each task executed:
$ ansible-playbook -v playbook.yaml
You can also choose -vvv for more verbose output.
Check for more options:
#ansible-playbook --help | less
============================
Ansible also has built-in support for logging.
Add the following lines to your ansible configuration file(/etc/ansible/ansible.cfg):
[defaults]
log_path=/path/to/logfile
============================
If you pass the -v flag to ansible-playbook on the command line, you'll see the stdout and stderr for each task executed:
$ ansible-playbook -v playbook.yaml
You can also choose -vvv for more verbose output.
Check for more options:
#ansible-playbook --help | less
============================
Ansible also has built-in support for logging.
Add the following lines to your ansible configuration file(/etc/ansible/ansible.cfg):
[defaults]
log_path=/path/to/logfile
============================
No comments:
Post a Comment