diff --git a/.travis.yml b/.travis.yml index 22cbfa4..caaed81 100644 --- a/.travis.yml +++ b/.travis.yml @@ -43,6 +43,9 @@ script: # Test role. - 'sudo docker exec --tty "$(cat ${container_id})" env TERM=xterm ansible-playbook /etc/ansible/roles/role_under_test/tests/${playbook}' + # Test role again. + - 'sudo docker exec --tty "$(cat ${container_id})" env TERM=xterm ansible-playbook /etc/ansible/roles/role_under_test/tests/${playbook}' + # Test role idempotence. - > sudo docker exec "$(cat ${container_id})" ansible-playbook /etc/ansible/roles/role_under_test/tests/${playbook} diff --git a/tasks/configure.yml b/tasks/configure.yml index aa5018d..9cbbbae 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -53,7 +53,7 @@ owner: mysql group: mysql mode: 0644 - when: mysql_slow_query_log_enabled + when: mysql_log == "" and mysql_log_error != "" - name: Ensure MySQL is started and enabled on boot. service: "name={{ mysql_daemon }} state=started enabled={{ mysql_enabled_on_startup }}"