infra/roles/hass/handlers/main.yml

19 lines
316 B
YAML

---
- name: reload nginx
service:
name: nginx
state: reloaded
- name: restart nginx
service:
name: nginx
state: restarted
- name: restart hass container
docker_container:
name: hass
state: started
restart: true
when: hass_container is not defined or not hass_container.changed