diff options
author | wutianwei <wutianwei1@huawei.com> | 2017-09-11 10:53:31 +0800 |
---|---|---|
committer | wutianwei <wutianwei1@huawei.com> | 2017-09-11 10:53:31 +0800 |
commit | 1a763c69762b0bdeabf42e1789316a39a2d55211 (patch) | |
tree | 0e2947329c36c8f5022a30530428a73db217aa8f | |
parent | acab17c36763b7679a6d761f438412e591347902 (diff) |
bugfix: fix moon network configuration
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>
-rwxr-xr-x | plugins/moon/roles/moon/handlers/main.yml | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/moon/roles/moon/handlers/main.yml b/plugins/moon/roles/moon/handlers/main.yml index ab2a090b..5029d378 100755 --- a/plugins/moon/roles/moon/handlers/main.yml +++ b/plugins/moon/roles/moon/handlers/main.yml @@ -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 |