diff options
author | carey.xu <carey.xuhan@huawei.com> | 2015-09-21 17:06:32 +0800 |
---|---|---|
committer | carey.xu <carey.xuhan@huawei.com> | 2015-09-22 18:01:38 +0800 |
commit | a2ea6270efc928dfb062cb32065162df4396b6a4 (patch) | |
tree | 95fff8d8e29f6e385e008edce4bd5637f30f2059 /deploy/adapters/ansible/roles/setup-network | |
parent | 6bd52b2de366a9c20e6c93ae7fef80f711dc6e7b (diff) |
ntp configure bugfix
JIRA: COMPASS-68
Change-Id: I0ff0d382bbd9c6931cabe764f83343cfc1dbcafe
Signed-off-by: carey.xu <carey.xuhan@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/setup-network')
-rwxr-xr-x | deploy/adapters/ansible/roles/setup-network/files/setup_networks/net_init | 2 | ||||
-rw-r--r-- | deploy/adapters/ansible/roles/setup-network/tasks/main.yml | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/deploy/adapters/ansible/roles/setup-network/files/setup_networks/net_init b/deploy/adapters/ansible/roles/setup-network/files/setup_networks/net_init index a74a0065..c27a8bf8 100755 --- a/deploy/adapters/ansible/roles/setup-network/files/setup_networks/net_init +++ b/deploy/adapters/ansible/roles/setup-network/files/setup_networks/net_init @@ -12,7 +12,7 @@ # # anamon.init: Starts the cobbler post-install boot notification program # -# chkconfig: 35 95 95 +# chkconfig: 35 0 6 # # description: anamon runs the first time a machine is booted after # installation. diff --git a/deploy/adapters/ansible/roles/setup-network/tasks/main.yml b/deploy/adapters/ansible/roles/setup-network/tasks/main.yml index 689e6e3d..8667a9b1 100644 --- a/deploy/adapters/ansible/roles/setup-network/tasks/main.yml +++ b/deploy/adapters/ansible/roles/setup-network/tasks/main.yml @@ -41,5 +41,4 @@ shell: python /opt/setup_networks/setup_networks.py - name: add to boot scripts - shell: update-rc.d net_init defaults 0 6 - when: ansible_os_family == "Debian" + service: name=net_init enabled=yes |