Browse Source

Merge pull request #4187 from giuseppe/uninstall-container-engine

Merged by openshift-bot
OpenShift Bot 8 years ago
parent
commit
15fd42020a
1 changed files with 7 additions and 0 deletions
  1. 7 0
      playbooks/adhoc/uninstall.yml

+ 7 - 0
playbooks/adhoc/uninstall.yml

@@ -305,8 +305,15 @@
   - shell: systemctl daemon-reload
     changed_when: False
 
+  - name: restart container-engine
+    service: name=container-engine state=restarted
+    ignore_errors: true
+    register: container_engine
+
   - name: restart docker
     service: name=docker state=restarted
+    ignore_errors: true
+    when: "container_engine.state != 'started'"
 
   - name: restart NetworkManager
     service: name=NetworkManager state=restarted