diff --git a/.travis.yml b/.travis.yml index 9d95094..359c5bc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,8 +19,8 @@ install: # Check ansible version - ansible --version - # Create ansible.cfg with correct roles_path - - 'printf "[defaults]\nroles_path=../" > ansible.cfg' + # Create ansible.cfg with correct roles_path and log file path + - touch ansible.log && { printf "[defaults]\nroles_path=../\nlog_path=ansible.log" > ansible.cfg; } env: - ANSIBLE_HOST_KEY_CHECKING=False @@ -28,6 +28,13 @@ env: script: - ansible-playbook tests/test.yml -v +after_failure: + - sudo tail -n 100 /var/log/syslog + - ls -l /var/log/riak + - ls /var/log/riak/error.log* && cat $(ls -tr /var/log/riak/error.log*) + - ls /var/log/riak/solr.log* && cat $(ls -tr /var/log/riak/solr.log*) + - cat ansible.log + notifications: webhooks: https://galaxy.ansible.com/api/v1/notifications/ slack: