Skip to content
Snippets Groups Projects
Commit d3a85842 authored by Smaine Kahlouch's avatar Smaine Kahlouch
Browse files

add timeout options to resolv.conf

parent 51f1ae1e
No related branches found
No related tags found
No related merge requests found
...@@ -80,6 +80,19 @@ ...@@ -80,6 +80,19 @@
follow: yes follow: yes
with_items: groups['kube-master'] with_items: groups['kube-master']
- name: Add options to resolv.conf
lineinfile:
line: options {{ item }}
dest: "{{resolvconffile}}"
state: present
regexp: "^options.*{{ item }}$"
insertafter: EOF
backup: yes
follow: yes
with_items:
- timeout:5
- attempts:2
- name: disable resolv.conf modification by dhclient - name: disable resolv.conf modification by dhclient
copy: src=dhclient_nodnsupdate dest=/etc/dhcp/dhclient-enter-hooks.d/nodnsupdate mode=u+x backup=yes copy: src=dhclient_nodnsupdate dest=/etc/dhcp/dhclient-enter-hooks.d/nodnsupdate mode=u+x backup=yes
when: ansible_os_family == "Debian" when: ansible_os_family == "Debian"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment