diff options
author | mwringe <mwringe@redhat.com> | 2017-06-13 21:54:50 -0400 |
---|---|---|
committer | mwringe <mwringe@redhat.com> | 2017-06-13 21:54:50 -0400 |
commit | de5c01fffd9215d5f2baff63baa2ccc8fa47c812 (patch) | |
tree | 3f1abde7065c06241e3ee8f58dcebb555a2ccb70 /roles/openshift_metrics/tasks/uninstall_hosa.yaml | |
parent | 67da7e2e4699f9a226a436218723749ebc14ace1 (diff) | |
download | openshift-de5c01fffd9215d5f2baff63baa2ccc8fa47c812.tar.gz openshift-de5c01fffd9215d5f2baff63baa2ccc8fa47c812.tar.bz2 openshift-de5c01fffd9215d5f2baff63baa2ccc8fa47c812.tar.xz openshift-de5c01fffd9215d5f2baff63baa2ccc8fa47c812.zip |
Support installing HOSA via ansible
Diffstat (limited to 'roles/openshift_metrics/tasks/uninstall_hosa.yaml')
-rw-r--r-- | roles/openshift_metrics/tasks/uninstall_hosa.yaml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/openshift_metrics/tasks/uninstall_hosa.yaml b/roles/openshift_metrics/tasks/uninstall_hosa.yaml new file mode 100644 index 000000000..42ed02460 --- /dev/null +++ b/roles/openshift_metrics/tasks/uninstall_hosa.yaml @@ -0,0 +1,15 @@ +--- +- name: remove Hawkular Agent (HOSA) components + command: > + {{ openshift.common.client_binary }} -n {{ openshift_metrics_hawkular_agent_namespace }} --config={{ mktemp.stdout }}/admin.kubeconfig + delete --ignore-not-found --selector=metrics-infra=agent + all,sa,secrets,templates,routes,pvc,rolebindings,clusterrolebindings + register: delete_metrics + changed_when: delete_metrics.stdout != 'No resources found' + +- name: remove rolebindings + command: > + {{ openshift.common.client_binary }} -n {{ openshift_metrics_hawkular_agent_namespace }} --config={{ mktemp.stdout }}/admin.kubeconfig + delete --ignore-not-found + clusterrolebinding/hawkular-openshift-agent-rb + changed_when: delete_metrics.stdout != 'No resources found' |