Code Review
/
eliot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
eg 1.1.1 related
[eliot.git]
/
blueprints
/
iotgateway
/
playbooks
/
roles
/
grafana
/
tasks
/
uninstall.yml
diff --git
a/blueprints/iotgateway/playbooks/roles/grafana/tasks/uninstall.yml
b/blueprints/iotgateway/playbooks/roles/grafana/tasks/uninstall.yml
index
6f08c57
..
93a5be0
100644
(file)
--- a/
blueprints/iotgateway/playbooks/roles/grafana/tasks/uninstall.yml
+++ b/
blueprints/iotgateway/playbooks/roles/grafana/tasks/uninstall.yml
@@
-15,7
+15,7
@@
---
- name: check if grafana is installed before deleting
shell:
---
- name: check if grafana is installed before deleting
shell:
- cmd: helm status
mec-
grafana
+ cmd: helm status grafana
register: result
ignore_errors: yes
no_log: True
register: result
ignore_errors: yes
no_log: True
@@
-28,7
+28,12
@@
msg: Ignore Uninstall Log , Grafana not installed
when: result.stdout == ""
msg: Ignore Uninstall Log , Grafana not installed
when: result.stdout == ""
-- name: Uninstall grafana
+- name: Uninstall grafana
on arm
shell:
shell:
- cmd: helm uninstall mec-grafana
- when: result is succeeded
+ cmd: helm uninstall grafana
+ when: result is succeeded and ansible_architecture == 'aarch64'
+
+- name: Uninstall grafana on x86
+ shell:
+ cmd: helm uninstall grafana
+ when: result is succeeded and ansible_architecture == 'x86_64'