How to get details of playbook executions

0 votes
Suppose I'm executing an ansible playbook and would like to see the executions logs, Is that possible?
Jan 21, 2019 in Ansible by Kiara
280 views

1 answer to this question.

0 votes

Run these commands to enable logging before executing the playbook:

Specify the location of the log file:

export ANSIBLE_LOG_PATH=~/ansible.log

Enable debug:

export ANSIBLE_DEBUG=True

Check the generated log file:

less $ANSIBLE_LOG_PATH

answered Jan 21, 2019 by Tanishq

Related Questions In Ansible

0 votes
1 answer

How to overwrite the content of a file in remote systems using Ansible playbook?

Hi@akhtar, You can find one argument in the ...READ MORE

answered Aug 2, 2020 in Ansible by MD
• 95,010 points
1,591 views
0 votes
1 answer

How to capture the output of a task in Ansible Playbook?

Hi@akhtar, Ansible registers module used to capture/store the ...READ MORE

answered Aug 2, 2020 in Ansible by MD
• 95,010 points
2,563 views
0 votes
1 answer

How to check the syntax of an Ansible playbook?

Hi@akhtar, Ansible has lots of commands, that help ...READ MORE

answered Sep 15, 2020 in Ansible by MD
• 95,010 points
1,157 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
895 views
+2 votes
1 answer
0 votes
1 answer

Ansible playbook to automate security configurations of an EC2 instance

Hey @Kiara, your indentation is very wrong. ...READ MORE

answered Jan 23, 2019 in Ansible by Harsh
159 views
0 votes
1 answer