Slavi Pantaleev
4b111d05d5
Pass devture_postgres_db_migration_request to com.devture.ansible.role.postgres in a cleaner way
há 3 anos
Slavi Pantaleev
910cd9adf0
Replace import_role calls with include_role calls
há 3 anos
Slavi Pantaleev
2688e8bfc3
Optimize initial installation by not reloading systemd after each .service install
We expect `--tags=start` to handle systemd reloading, so we don't need
to do it manually each time we install/uninstall a .service file.
há 3 anos
Slavi Pantaleev
04b9483f0d
Switch from matrix-postgres to com.devture.ansible.role.postgres
há 3 anos
Slavi Pantaleev
d3bd1ca024
matrix_*_retries_{count,delay} -> devture_playbook_help_*_retries_{count,delay}
há 3 anos
Slavi Pantaleev
835d2e9581
matrix_systemd_path -> devture_systemd_docker_base_systemd_path (via com.devture.ansible.role.systemd_docker_base)
há 3 anos
Slavi Pantaleev
410a915a8a
Move roles/matrix* to roles/custom/matrix*
This paves the way for installing other roles into `roles/galaxy` using `ansible-galaxy`,
similar to how it's done in:
- https://github.com/spantaleev/gitea-docker-ansible-deploy
- https://github.com/spantaleev/nextcloud-docker-ansible-deploy
In the near future, we'll be removing a lot of the shared role code from here
and using upstream roles for it. Some of the core `matrix-*` roles have
already been extracted out into other reusable roles:
- https://github.com/devture/com.devture.ansible.role.postgres
- https://github.com/devture/com.devture.ansible.role.systemd_docker_base
- https://github.com/devture/com.devture.ansible.role.timesync
- https://github.com/devture/com.devture.ansible.role.vars_preserver
- https://github.com/devture/com.devture.ansible.role.playbook_runtime_messages
- https://github.com/devture/com.devture.ansible.role.playbook_help
We just need to migrate to those.
há 3 anos
Sebastian Gumprich
48388a3d96
use fqcns for some task
Signed-off-by: Sebastian Gumprich <github@gumpri.ch>
há 3 anos
Slavi Pantaleev
1ea1597020
Fix some ansible-lint-reported warnings
This mostly fixes `key-order` warnings around
`block` statements.
há 3 anos
Slavi Pantaleev
7831dc91b3
Import tasks from other roles in a better way
One that doesn't trip up ansible-lint, causing `load-failure` errors.
há 3 anos
Slavi Pantaleev
0ab2001ce7
Fix git-latest ansible-lint errors
Reference: https://ansible-lint.readthedocs.io/en/latest/default_rules/#git-latest
Our variable naming is not necessarily consistent across roles.
I've tried to follow the naming conventions of each individual role.
All new variables are suffixed with `_version`, but the prefix may be
somewhat different.
há 3 anos
Slavi Pantaleev
ddf18eadc7
More ansible-lint fixes
há 3 anos
Slavi Pantaleev
34cdaade08
Use fully-qualified module names for builtin Ansible modules
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1939
há 3 anos
Slavi Pantaleev
2df993977a
Ensure git cloning when self-building is done with the matrix user, not root
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1749
há 4 anos
Aine
2da3768b20
Added retries to the docker pulls ( #1701 )
há 4 anos
Aine
701591e87e
Added retries to the docker pulls
há 4 anos
Jim Myhrberg
eeca3c8dca
fix: avoid yaml being wrapped at column 80 via to_nice_yaml
The `to_nice_yaml` helper will by default wrap any string YAML values on
the first space after column 80. This can in worst case yield invalid
YAML syntax. More details in Ansible's documentation here:
https://docs.ansible.com/ansible/latest/user_guide/playbooks_filters.html#formatting-data-yaml-and-json
In short, you need to explicitly provide a custom width argument of a
high number of some kind to avoid the line wrapping.
há 4 anos
Marko Weltzer
7e5b88c3b7
fix: all praise the allmighty yamllinter
há 4 anos
rakshazi
d9dd524db3
self-build consistency: rename vars everywhere
há 4 anos
Michael Collins
98e6cd685d
sync with previous repo
há 4 anos
Slavi Pantaleev
49abe66f1d
Remove unnecessary if condition
All of `setup_install.yml` only runs if `matrix_bot_matrix_reminder_bot_enabled`,
so it's not necessary to add that condition once again.
há 4 anos
Nate
012440c309
Allow for self-building of reminder-bot
há 4 anos
Stuart Mumford
019a4d7dcd
Use role relative paths for things
há 5 anos
Slavi Pantaleev
ac37091d01
Enable automatic (SQLite -> Postgres) migration for matrix-reminder-bot
há 5 anos
Slavi Pantaleev
e3a0c9adda
Add (Postgres + SQLite) support to matrix-reminder-bot
This has been tested and appears to work.
há 5 anos
Slavi Pantaleev
aa828ff9f6
Separate matrix-reminder-bot install/uninstall tasks
há 5 anos