--- a/playbook-example.yml Fri Apr 01 01:57:43 2016 +0800
+++ b/playbook-example.yml Fri Apr 01 01:58:30 2016 +0800
# and also it uses two handlers:
- # If you don't have your own nginx and supervisor roles, just reload or
- # restart both services manually after running this playbook.
+ # This role doesn't have the handlers, so this playbook restarts the
+ # services in post_tasks instead.
apt: package=nginx-full state=installed update_cache=yes cache_valid_time=3600
- name: Disable default Nginx site
+ service: name=nginx state=restarted
+ - name: Restart Supervisor
+ service: name=supervisor state=restarted sleep=1