File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 80
80
hosts : grafana
81
81
tags : grafana
82
82
tasks :
83
- - assert :
84
- that : vault_grafana_admin_password is defined
85
- fail_msg : " Must define vault_grafana_admin_password - use `ansible-playbook generate-passwords.yml` to generate a set of passwords"
83
+ - name : Skip plugin installation in configure mode
84
+ # done during fatimage - can't do this in vars block as that is recursive
85
+ ansible.builtin.set_fact :
86
+ grafana_plugins : " {{ [] if appliances_mode == 'configure' else grafana_plugins }}"
86
87
- include_role :
87
88
name : cloudalchemy.grafana
88
89
vars :
89
- # Plugin installation done during fatimage:
90
- grafana_plugins : " {{ if appliances_mode == 'configure' else grafana_plugins }}"
91
90
# Internal role used to install dashboards as cloudalchemy role does not support all required options:
92
91
grafana_dashboards : []
93
92
- include_role : # done in same play so it can use handlers from cloudalchemy.grafana
94
93
name : grafana-dashboards
95
- when : " {{ appliances_mode != 'configure '}} "
94
+ when : " appliances_mode != 'configure' "
96
95
97
96
- name : Deploy alertmanager
98
97
hosts : alertmanager
You can’t perform that action at this time.
0 commit comments