matrix-docker-ansible-deploy/roles/matrix-server/tasks/setup
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
..
ssl Switch to managing cronjobs with the Ansible cron module 2019-01-08 12:52:03 +02:00
synapse Use yaml syntax instead of key=value syntax consistently 2019-01-07 23:38:39 +01:00
main.yml Replace include usage with include_tasks and import_tasks 2019-01-03 15:24:08 +02:00
setup_base.yml Use yaml syntax instead of key=value syntax consistently 2019-01-07 23:38:39 +01:00
setup_corporal_overrides.yml Relocate some playbook task files to make it easier to navigate 2018-10-21 13:14:47 +03:00
setup_corporal.yml Relocate some playbook task files to make it easier to navigate 2018-10-21 13:14:47 +03:00
setup_coturn.yml Rename playbook variables so they are consistently prefixed 2018-11-01 08:46:47 +02:00
setup_goofys.yml Use yaml syntax instead of key=value syntax consistently 2019-01-07 23:38:39 +01:00
setup_mailer.yml Use yaml syntax instead of key=value syntax consistently 2019-01-07 23:38:39 +01:00
setup_main.yml add script + doc to remove everything 2018-11-28 11:02:51 +01:00
setup_mxisd.yml Use yaml syntax instead of key=value syntax consistently 2019-01-07 23:38:39 +01:00
setup_nginx_proxy.yml Switch to managing cronjobs with the Ansible cron module 2019-01-08 12:52:03 +02:00
setup_postgres.yml Use yaml syntax instead of key=value syntax consistently 2019-01-07 23:38:39 +01:00
setup_riot_web.yml Use yaml syntax instead of key=value syntax consistently 2019-01-07 23:38:39 +01:00
setup_sanity_check.yml Add Ansible guide and Ansible version checks 2019-01-03 16:24:14 +02:00
setup_well_known.yml Relocate some playbook task files to make it easier to navigate 2018-10-21 13:14:47 +03:00