28 lines
872 B
YAML
28 lines
872 B
YAML
---
|
||
# The home-server project produces a multi-purpose setup using Ansible.
|
||
# Copyright © 2018–2023 Y. Gablin, under the GPL-3.0-or-later license.
|
||
# Full licensing information in the LICENSE file, or gnu.org/licences/gpl-3.0.txt if the file is missing.
|
||
|
||
- name: stop again services that may got started by handlers
|
||
include_role: name=_maintenance_start allow_duplicates=true
|
||
|
||
- name: restart some services
|
||
shell: |
|
||
for u in \
|
||
nextcloud-maintenance.timer uwsgi@nextcloud.socket \
|
||
dehydrated.timer \
|
||
minidlna.service \
|
||
nfs-server.service
|
||
do
|
||
systemctl start $u || true
|
||
done
|
||
when:
|
||
- (inventory_hostname in groups['back'])
|
||
|
||
- name: restart some services
|
||
shell: |
|
||
systemctl start spamassassin.service || true
|
||
systemctl start spamassassin-update.timer || true
|
||
when:
|
||
- (inventory_hostname in groups['front'])
|