Make sure matrix_user_uid and matrix_user_gid are always set

If one runs the playbook with `--tags=setup-all`, it would have been
fine.

But running with a specific tag (e.g. `--tags=setup-riot-web`) would
have made that initialization be skipped, and the `matrix-riot-web` role
would fail, due to missing variables.
This commit is contained in:
Slavi Pantaleev
2020-05-06 09:43:30 +03:00
parent a1c5a197a9
commit 8fea6f5130
3 changed files with 29 additions and 21 deletions

View File

@ -12,6 +12,13 @@
tags:
- setup-all
# This needs to always run, because it populates `matrix_user_uid` and `matrix_user_gid`,
# which are required by many other roles.
- import_tasks: "{{ role_path }}/tasks/setup_matrix_user.yml"
when: run_setup|bool
tags:
- always
- import_tasks: "{{ role_path }}/tasks/setup_matrix_base.yml"
when: run_setup|bool
tags: