bugfix: fix moon network configuration 95/41495/1
authorwutianwei <wutianwei1@huawei.com>
Mon, 11 Sep 2017 02:53:31 +0000 (10:53 +0800)
committerwutianwei <wutianwei1@huawei.com>
Mon, 11 Sep 2017 02:53:31 +0000 (10:53 +0800)
Due to creating the br-mgmt bridge,
it is necessary to remove the IP from the eth0 interface.

Change-Id: I32cf4d47530be3d625e29202f70b5667e6113a8c
Signed-off-by: wutianwei <wutianwei1@huawei.com>
plugins/moon/roles/moon/handlers/main.yml

index ab2a090..5029d37 100755 (executable)
@@ -7,9 +7,5 @@
 ##############################################################################
 ---
 - name: restart network service
-  shell: "ifconfig eth0 down && ifconfig eth0 up && \
-          /sbin/ifdown -a && \
+  shell: "ifconfig eth0 0 &&  /sbin/ifdown -a && \
           /sbin/ifup --ignore-errors -a"
-
-- name: restart nfs service
-  service: name=nfs-kernel-server state=restarted