Przeglądaj źródła

Uninstall: restart docker when container-engine restart hasn't changed.

Andrew Butcher 8 lat temu
rodzic
commit
fcef48b82d
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      playbooks/adhoc/uninstall.yml

+ 1 - 1
playbooks/adhoc/uninstall.yml

@@ -313,7 +313,7 @@
   - name: restart docker
     service: name=docker state=restarted
     ignore_errors: true
-    when: "container_engine.state != 'started'"
+    when: not (container_engine | changed)
 
   - name: restart NetworkManager
     service: name=NetworkManager state=restarted