infra/roles/nextcloud/handlers/main.yml

23 lines
389 B
YAML

---
- name: reload nginx
service:
name: nginx
state: reloaded
- name: restart filebeat
service:
name: filebeat
state: restarted
- name: restart nextcloud
docker_container:
name: "{{ item.name }}"
state: "{{ item.state }}"
restart: true
when:
- item.state == "started"
with_items: "{{ nextclouds }}"
loop_control:
label: "{{ item.name }}"