45 lines
785 B
YAML
45 lines
785 B
YAML
---
|
|
|
|
- name: restart dhcp-helper
|
|
service:
|
|
name: dhcp-helper
|
|
state: restarted
|
|
|
|
- name: restart pihole
|
|
command: docker restart pihole
|
|
|
|
- name: systemctl daemon reload
|
|
command: systemctl daemon-reload
|
|
|
|
- name: reload nginx
|
|
service:
|
|
name: nginx
|
|
state: reloaded
|
|
|
|
- name: pihole restartdns
|
|
command: docker exec pihole pihole restartdns
|
|
|
|
- name: restart pihole
|
|
docker_container:
|
|
name: pihole
|
|
image: pihole/pihole:latest
|
|
state: started
|
|
restart: true
|
|
|
|
- name: restart unbound
|
|
docker_container:
|
|
name: "{{ item }}"
|
|
image: mvance/unbound:latest
|
|
state: started
|
|
restart: true
|
|
with_items:
|
|
- unbound0
|
|
- unbound1
|
|
loop_control:
|
|
label: "{{ item }}"
|
|
|
|
- name: restart filebeat
|
|
service:
|
|
name: filebeat
|
|
state: restarted
|