aboutsummaryrefslogtreecommitdiffstats
path: root/tasks/network.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/network.yml')
-rw-r--r--tasks/network.yml12
1 files changed, 4 insertions, 8 deletions
diff --git a/tasks/network.yml b/tasks/network.yml
index dbfa43c..d582d0c 100644
--- a/tasks/network.yml
+++ b/tasks/network.yml
@@ -7,6 +7,10 @@
mode: "0644"
register: resolv_conf
+- name: Make resolv.conf immutable
+ shell: chflags schg /etc/resolv.conf
+ when: resolv_conf.changed
+
- name: Restart networking if interface configuration changed
shell: service netif restart && service routing restart
when: rc_conf.changed or resolv_conf.changed
@@ -142,11 +146,3 @@
name: do_dyndns
state: restarted
when: not do_dyndns_start.changed and (do_dyndns_sh.changed or do_dyndns_rc.changed)
-
-- name: Install gen_dhclient_conf.sh
- template:
- src: usr_local_bin_gen_dhclient_conf.sh.j2
- dest: /usr/local/bin/gen_dhclient_conf.sh
- owner: root
- group: wheel
- mode: "0755"