ansible-roles/roles/seafile/tasks/services.yml

20 lines
609 B
YAML
Raw Normal View History

2021-12-01 19:13:34 +01:00
---
- name: Start and enable services
service: name={{ item }} state=started enabled=True
loop:
- seafile
- seahub
2022-02-15 12:00:10 +01:00
# Only start services when not upgrading, or upgrading from the same major version
# On major version upgrades, we need to run upgrade scripts manually
2022-03-22 18:00:07 +01:00
when: seafile_install_mode != 'upgrade' or (seafile_current_major_version is defined and seafile_current_major_version == seafile_new_major_version)
2021-12-01 19:13:34 +01:00
tags: seafile
- name: Start and enable timers
systemd: name={{ item }}.timer state=started enabled=True
loop:
- seafile-clean-db
- seafile-gc
tags: seafile