matrix-docker-ansible-deploy/roles/matrix-server/tasks
Slavi Pantaleev b222d26c86 Switch to managing cronjobs with the Ansible cron module
As suggested in #65 (Github issue), this patch switches
cronjob management from using templates to using Ansible's `cron` module.

It also moves the management of the nginx-reload cronjob to `setup_ssl_lets_encrypt.yml`,
which is a more fitting place for it (given that this cronjob is only required when
Let's Encrypt is used).

Pros:
- using a module is more Ansible-ish than templating our own files in
special directories

- more reliable: will fail early (during playbook execution) if `/usr/bin/crontab`
is not available, which is more of a guarantee that cron is working fine
(idea: we should probably install some cron package using the playbook)

Cons:
- invocation schedule is no longer configurable, unless we define individual
variables for everything or do something smart (splitting on ' ', etc.).
Likely not necessary, however.

- requires us to deprecate and clean-up after the old way of managing cronjobs,
because it's not compatible (using the same file as before means appending
additional jobs to it)
2019-01-08 12:52:03 +02:00
..
import Use yaml syntax instead of key=value syntax consistently 2019-01-07 23:38:39 +01:00
self_check Check DNS SRV record for _matrix-identity._tcp when mxisd enabled 2019-01-08 10:39:22 +02:00
setup Switch to managing cronjobs with the Ansible cron module 2019-01-08 12:52:03 +02:00
util Make Postgres version detection logic reusable to ease maintenance 2019-01-01 13:43:51 +02:00
main.yml Replace include usage with include_tasks and import_tasks 2019-01-03 15:24:08 +02:00
register_user.yml Use yaml syntax instead of key=value syntax consistently 2019-01-07 23:38:39 +01:00
start.yml Use yaml syntax instead of key=value syntax consistently 2019-01-07 23:38:39 +01:00
upgrade_postgres.yml Use yaml syntax instead of key=value syntax consistently 2019-01-07 23:38:39 +01:00