--- a/playbook-example.yml Tue Aug 09 16:00:33 2016 +0800
+++ b/playbook-example.yml Tue Aug 09 16:01:05 2016 +0800
line: '127.0.0.1 {{ hostname }} hg.{{ hostname }}'
- # NOTE: this role depends on nginx and supervisor packages being installed,
- # and also it uses two handlers:
- # This role doesn't have the handlers, so this playbook restarts the
- # services in post_tasks instead.
+ # NOTE: hgweb role depends on Nginx and Supervisor being installed. It's
+ # recommended to install them in separate nginx and supervisor roles, not
+ # in pre_tasks like in this example playbook.
+ # NOTE: hgweb role notifies two handlers:
+ # Naturally, the handlers are not defined in the role itself, so this
+ # example playbook includes them here.
+ - name: reload supervisor
+ shell: supervisorctl update
- - name: Restart Supervisor