Slavi Pantaleev
910cd9adf0
Replace import_role calls with include_role calls
před 3 roky
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.
před 3 roky
Slavi Pantaleev
2473cd655b
Include ensure_openssl_installed and ensure_fuse_installed utils in a more reliable way
This fixes a regression since the change done in c1c152f7ac .
When another role (say `matrix-jitsi`) included `roles/custom/matrix-base/tasks/util/ensure_openssl_installed.yml`,
which then included `{{ role_path }}/tasks/util/ensure_openssl_installed_DISTRO.yml`,
that `role_path` variable would end up being the parent role
(`matrix-jitsi`) and not the `matrix-base` role, so we'd get a failure.
An alternative solution may have been to avoid using `role_path`, but
importing roles properly (like we've done in this patch) sounds like a better way.
Unfortunately, `import_role` fails if `tasks_from` is something like
`util/ensure_openssl_installed` (containing a `/`), so I had to move
these utils out of `util/`.
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/2228
před 3 roky
Slavi Pantaleev
d3bd1ca024
matrix_*_retries_{count,delay} -> devture_playbook_help_*_retries_{count,delay}
před 3 roky
Slavi Pantaleev
a9a81460ec
matrix_host_command_docker -> devture_systemd_docker_base_host_command_docker (via com.devture.ansible.role.systemd_docker_base)
před 3 roky
Slavi Pantaleev
835d2e9581
matrix_systemd_path -> devture_systemd_docker_base_systemd_path (via com.devture.ansible.role.systemd_docker_base)
před 3 roky
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.
před 3 roky
Sebastian Gumprich
48388a3d96
use fqcns for some task
Signed-off-by: Sebastian Gumprich <github@gumpri.ch>
před 3 roky
Slavi Pantaleev
1693c4ca1d
Fix no-changed-when ansible-lint errors
Reference: https://ansible-lint.readthedocs.io/en/latest/default_rules/#no-changed-when
před 3 roky
Slavi Pantaleev
ddf18eadc7
More ansible-lint fixes
před 3 roky
Slavi Pantaleev
34cdaade08
Use fully-qualified module names for builtin Ansible modules
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1939
před 3 roky
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
před 3 roky
Arthur Brugière
cfd8a9c0f8
[HOOKSHOT] Fix yamllint
před 3 roky
Arthur Brugière
b3176957c3
Add hookshot self build for arm64 and amd64
před 3 roky
Aine
2da3768b20
Added retries to the docker pulls ( #1701 )
před 4 roky
Aine
701591e87e
Added retries to the docker pulls
před 4 roky
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.
před 4 roky
Slavi Pantaleev
1ed46f0a86
Remove Jinja2 templating delimiters from when statement
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1629
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1505
před 4 roky
Marko Weltzer
7e5b88c3b7
fix: all praise the allmighty yamllinter
před 4 roky
HarHarLinks
a1a5b16185
update hookshot private key installation method
před 4 roky
HarHarLinks
5d07f14235
install openssl for hookshot
using b33ea48
před 4 roky
HarHarLinks
8498ffd8f7
name hookshot github private key consistently
před 4 roky
HarHarLinks
f12cad7a7b
rename hookshot *.yaml to *.yml
před 4 roky
HarHarLinks
23d6b2d3da
update hookshot github private key path and install condition
před 4 roky
HarHarLinks
8b19f56ef8
add hookshot config validation
před 4 roky
HarHarLinks
65991de61c
update hookshot private key file mechanism
před 4 roky
HarHarLinks
1987cc4839
refine hookshot role
před 4 roky
HarHarLinks
495bfedc0d
refine hookshot role using `--test`
před 4 roky
HarHarLinks
b8ee1980ea
refine hookshot role
před 4 roky
HarHarLinks
621251c1e5
hookshot role groundwork
před 4 roky