xoxys.homeassistant_docker/handlers/main.yml
Robert Kaussow 3ecc20bc4c
Some checks reported errors
continuous-integration/drone/push Build was killed
add nginx handler
2019-04-27 14:30:38 +02:00

19 lines
369 B
YAML

---
- name: Restart homeassistant service
systemd:
state: restarted
daemon_reload: yes
name: homeassistant
listen: __homeassistant_restart
become: True
become_user: root
- name: Reload nginx
systemd:
state: reloaded
name: nginx
listen: __nginx_reload
delegate_to: "{{ homeassistant_nginx_server }}"
become: True
become_user: root