Split install/uninstall tasks in matrix-prometheus

This commit is contained in:
Slavi Pantaleev
2021-01-31 18:30:02 +02:00
parent 18e31526a8
commit 6842102e00
3 changed files with 41 additions and 47 deletions

View File

@@ -8,7 +8,14 @@
- setup-all
- setup-prometheus
- import_tasks: "{{ role_path }}/tasks/setup.yml"
- import_tasks: "{{ role_path }}/tasks/setup_install.yml"
when: "run_setup|bool and matrix_prometheus_enabled|bool"
tags:
- setup-all
- setup-prometheus
- import_tasks: "{{ role_path }}/tasks/setup_uninstall.yml"
when: "run_setup|bool and not matrix_prometheus_enabled|bool"
tags:
- setup-all
- setup-prometheus