summaryrefslogtreecommitdiffstats
path: root/playbooks/adhoc
diff options
context:
space:
mode:
authorBrenton Leanhardt <bleanhar@redhat.com>2015-10-30 14:15:49 -0400
committerBrenton Leanhardt <bleanhar@redhat.com>2015-10-30 14:24:24 -0400
commite0fd136c9ae77115cc80f487aac44f066492e494 (patch)
tree7335ac05d5994b32358432f89b27bbff9cacb5ec /playbooks/adhoc
parent01ebae72262cdc978a1d7eb248d52a3260c18972 (diff)
downloadopenshift-e0fd136c9ae77115cc80f487aac44f066492e494.tar.gz
openshift-e0fd136c9ae77115cc80f487aac44f066492e494.tar.bz2
openshift-e0fd136c9ae77115cc80f487aac44f066492e494.tar.xz
openshift-e0fd136c9ae77115cc80f487aac44f066492e494.zip
Attempt to remove the various interfaces left over from an install
Removing br0 won't work if openvswitch has already been stopped. ovs-system will be left around but that is just a problem with openvswitch's packaging. That device is apparently not even used. In the worst case a manual reboot will remove all of these devices.
Diffstat (limited to 'playbooks/adhoc')
-rw-r--r--playbooks/adhoc/uninstall.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/playbooks/adhoc/uninstall.yml b/playbooks/adhoc/uninstall.yml
index 7d1544be8..0503b7cd4 100644
--- a/playbooks/adhoc/uninstall.yml
+++ b/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