Skip to content

Commit d5d6412

Browse files
committed
Fix: push_mw_* tags not working
The push_mw_* tags used to push new configuration to the middleware stopped working. The problem is that "import_tasks" is not run when one the push_mw_* tags is set, so the docker/vm tasks are not included. Fixed by explicitly adding the tags to the import_tasks condition when so the tasks are imported.
1 parent 78642aa commit d5d6412

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
- name: Include docker tasks when running docker
22
import_tasks: docker.yml
3-
when: "'docker' in group_names"
3+
when: "'docker' in group_names
4+
or 'push_mw_config' in ansible_run_tags
5+
or 'push_mw_institution' in ansible_run_tags
6+
or 'push_mw_whitelist' in ansible_run_tags"
47

58
- name: Include vm tasks when running on a vm
69
import_tasks: vm.yml
7-
when: "'docker' not in group_names"
10+
when: "'docker' not in group_names
11+
or 'push_mw_config' in ansible_run_tags
12+
or 'push_mw_institution' in ansible_run_tags
13+
or 'push_mw_whitelist' in ansible_run_tags"

0 commit comments

Comments
 (0)