Unverified Commit 71b98fba authored by JeremJR's avatar JeremJR Committed by GitHub

Merge pull request #54 from bonitasoft/feat-access-ansible-log-2.0

Document how to access Ansible Logs
parents 62aff035 bb1174b3
......@@ -72,3 +72,21 @@ $ bcd -y -s scenarios/myscenario.yml stack create deploy
$ ansible all -vv -i ansible/inventory/ec2/ec2_wrapper.sh -m setup -u ubuntu --private-key=~/.ssh/my_key.pem --tree tmp_facts/
This command will identify every EC2 instance (depending of `bcd_stack_id` set into ec2.ini by the last `bcd stack deploy` command) and put its facts into the `tmp_facts` directory.
## Accessing Ansible Logs
In order to troubleshoot issues, you may need to consult Ansible logs.
By default, the path of the log is `/var/log/ansible.log` in your Docker container. You can change this location modifying
the variable `log_path` in the Ansible configuration file located in `/home/bonita/bonita-continuous-delivery/ansible/ansible.cfg`.
If you want to persist the log, you can add a ***volume*** in when you run `docker run` command like
$ docker run --rm -t -i --name bcd-controller \
-v <local_path_to_.boto>:/home/bonita/.boto \
-v <local_path_to_bonita-continuous-delivery_folder>:/home/bonita/bonita-continuous-delivery \
-v <local_path_to_ssh_private_key>:/home/bonita/.ssh/<ssh_private_key> \
-v <local_path_to_your_ansible_log>:/var/log/ansible.log \
bonitasoft/bcd-controller /bin/bash
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment