Slavi Pantaleev
ade312e6f6
Add matrix_hookshot_container_network
3 лет назад
Slavi Pantaleev
dddfee16bc
Fix all 300+ ansible-lint-reported errors
3 лет назад
Slavi Pantaleev
910cd9adf0
Replace import_role calls with include_role calls
3 лет назад
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.
3 лет назад
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
3 лет назад
Slavi Pantaleev
d3bd1ca024
matrix_*_retries_{count,delay} -> devture_playbook_help_*_retries_{count,delay}
3 лет назад
Slavi Pantaleev
a9a81460ec
matrix_host_command_docker -> devture_systemd_docker_base_host_command_docker (via com.devture.ansible.role.systemd_docker_base)
3 лет назад
Slavi Pantaleev
835d2e9581
matrix_systemd_path -> devture_systemd_docker_base_systemd_path (via com.devture.ansible.role.systemd_docker_base)
3 лет назад
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.
3 лет назад
Sebastian Gumprich
48388a3d96
use fqcns for some task
Signed-off-by: Sebastian Gumprich <github@gumpri.ch>
3 лет назад
Slavi Pantaleev
1693c4ca1d
Fix no-changed-when ansible-lint errors
Reference: https://ansible-lint.readthedocs.io/en/latest/default_rules/#no-changed-when
3 лет назад
Slavi Pantaleev
ddf18eadc7
More ansible-lint fixes
3 лет назад
Slavi Pantaleev
34cdaade08
Use fully-qualified module names for builtin Ansible modules
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1939
3 лет назад
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
3 лет назад
Arthur Brugière
cfd8a9c0f8
[HOOKSHOT] Fix yamllint
3 лет назад
Arthur Brugière
b3176957c3
Add hookshot self build for arm64 and amd64
3 лет назад
Aine
2da3768b20
Added retries to the docker pulls ( #1701 )
4 лет назад
Aine
701591e87e
Added retries to the docker pulls
4 лет назад
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.
4 лет назад
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
4 лет назад
Marko Weltzer
7e5b88c3b7
fix: all praise the allmighty yamllinter
4 лет назад
HarHarLinks
a1a5b16185
update hookshot private key installation method
4 лет назад
HarHarLinks
5d07f14235
install openssl for hookshot
using b33ea48
4 лет назад
HarHarLinks
8498ffd8f7
name hookshot github private key consistently
4 лет назад
HarHarLinks
f12cad7a7b
rename hookshot *.yaml to *.yml
4 лет назад
HarHarLinks
23d6b2d3da
update hookshot github private key path and install condition
4 лет назад
HarHarLinks
8b19f56ef8
add hookshot config validation
4 лет назад
HarHarLinks
65991de61c
update hookshot private key file mechanism
4 лет назад
HarHarLinks
1987cc4839
refine hookshot role
4 лет назад
HarHarLinks
495bfedc0d
refine hookshot role using `--test`
4 лет назад
HarHarLinks
b8ee1980ea
refine hookshot role
4 лет назад
HarHarLinks
621251c1e5
hookshot role groundwork
4 лет назад