diff --git a/.travis.yml b/.travis.yml index 73ced31..cdbe8d5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,7 +20,7 @@ script: - "ansible-playbook -i tests/inventory tests/$SITE --syntax-check" # Run the role/playbook with ansible-playbook. - - "ansible-playbook -i tests/inventory tests/$SITE --connection=local --sudo -vvvv" + - "ansible-playbook -i tests/inventory tests/$SITE --connection=local --sudo" # Run the role/playbook again, checking to make sure it's idempotent. - > diff --git a/handlers/main.yml b/handlers/main.yml index ae09986..8622c20 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,11 +1,5 @@ --- -# For some reason, 'service mysql restart' doesn't work sometimes. - name: restart mysql - command: "{{ item }}" - with_items: - - "service {{ mysql_daemon }} stop" - - "service {{ mysql_daemon }} start" -# - name: restart mysql -# service: > -# name={{ mysql_daemon }} -# state=restarted + service: > + name={{ mysql_daemon }} + state=restarted