Browse Source

Merge pull request #777 from brenton/uninstall

Attempt to remove the various interfaces left over from an install
Brenton Leanhardt 9 years ago
parent
commit
9e586db293
1 changed files with 14 additions and 0 deletions
  1. 14 0
      playbooks/adhoc/uninstall.yml

+ 14 - 0
playbooks/adhoc/uninstall.yml

@@ -22,6 +22,11 @@
     - set_fact:
         is_atomic: "{{ ostree_output.rc == 0 }}"
 
+    - name: Remove br0 interface
+      shell: ovs-vsctl del-br br0
+      changed_when: False
+      failed_when: False
+
     - service: name={{ item }} state=stopped
       with_items:
         - atomic-enterprise-master
@@ -69,6 +74,15 @@
         - tuned-profiles-openshift-node
         - tuned-profiles-origin-node
 
+    - name: Remove linux interfaces
+      shell: ip link del "{{ item }}"
+      changed_when: False
+      failed_when: False
+      with_items:
+        - lbr0
+        - vlinuxbr
+        - vovsbr
+
     - shell: systemctl reset-failed
       changed_when: False