neal 5 anni fa
parent
commit
3526c6a1ac
3 ha cambiato i file con 14 aggiunte e 0 eliminazioni
  1. 1 0
      config.yml
  2. 4 0
      provisioning/playbook.yml
  3. 9 0
      restart_NM.sh

+ 1 - 0
config.yml

@@ -0,0 +1 @@
+--

+ 4 - 0
provisioning/playbook.yml

@@ -0,0 +1,4 @@
+---
+- hosts: all
+  tasks:
+    - ping:

+ 9 - 0
restart_NM.sh

@@ -0,0 +1,9 @@
+#ping 1.1.1.1 and if no response restart Network Manager
+while true; do
+    if ping -c 1 172.17.1.1; then
+       echo "all ok!"
+    else
+      systemctl restart NetworkManager.service
+    fi
+    sleep 5
+done