瀏覽代碼

Restart network handler now excludes the default interface to not cause problems with the ssh connection

Till Klocke 9 年之前
父節點
當前提交
611c8a3e7d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      roles/supernode-interfaces/handlers/main.yml

+ 1 - 1
roles/supernode-interfaces/handlers/main.yml

@@ -1,4 +1,4 @@
 ---
 # handlers file for supernode-interfaces
 - name: Restart network
-  shell: ifdown --exclude=lo -a && ifup --exclude=lo -a
+  shell: ifdown --exclude=lo --exclude="{{supernode_public_interface}}" -a && ifup --exclude=lo --exclude="{{supernode_public_interface}}" -a