summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/setup-network
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/adapters/ansible/roles/setup-network')
-rw-r--r--deploy/adapters/ansible/roles/setup-network/tasks/main.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/setup-network/tasks/main.yml b/deploy/adapters/ansible/roles/setup-network/tasks/main.yml
index 5e5a0936..9edee350 100644
--- a/deploy/adapters/ansible/roles/setup-network/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/setup-network/tasks/main.yml
@@ -74,5 +74,12 @@
- name: add to boot scripts
shell: update-rc.d net_init defaults
+ when: ansible_os_family == "Debian"
+
+- name: add to boot scripts
+ shell: |
+ chkconfig --add net_init;
+ chkconfig --level 2345 net_init on;
+ when: ansible_os_family == 'RedHat'
- meta: flush_handlers