소스 검색

Add flannel package removal in uninstallation playbook

Manjunath A Kumatagi 8 년 전
부모
커밋
e8f20d6d16
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      playbooks/adhoc/uninstall.yml

+ 5 - 0
playbooks/adhoc/uninstall.yml

@@ -72,6 +72,10 @@
     - tuned-profiles-openshift-node
     - tuned-profiles-origin-node
 
+  - name: Remove flannel package
+    action: "{{ ansible_pkg_mgr }} name=flannel state=absent"
+    when: openshift_use_flannel | default(false) | bool
+
   - shell: systemctl reset-failed
     changed_when: False
 
@@ -289,6 +293,7 @@
     - /usr/local/bin/oadm
     - /usr/local/bin/oc
     - /usr/local/bin/kubectl
+    - /etc/flannel
 
   # Since we are potentially removing the systemd unit files for separated
   # master-api and master-controllers services, so we need to reload the