Commit 91c6b80e authored by julian.gethmann's avatar julian.gethmann

Change setting of the DNS server

* Use nmcli module instead of writing the resolv.conf which is
overwritten each time the network manager recognizes it.
parent 18624c6c
# Generated by NetworkManager
search physik.kit.edu physik.uni-karlsruhe.de anka.kit.edu kit.edu
nameserver 129.13.64.5
nameserver 129.13.96.2
nameserver 8.8.8.8
......@@ -3,6 +3,21 @@
hostname: "name=las{{ ip_suffix }}.las.kit.edu"
become: yes
- name: deploy resolv.conf
become: yes
copy: src=resolv.conf dest=/etc/resolv.conf backup=yes mode=644 owner=root
- name: install needed network manager libs
dnf:
name: '{{ item }}'
state: installed
with_items:
- NetworkManager-glib
- libnm-qt-devel.x86_64
- nm-connection-editor.x86_64
- libsemanage-python
- policycoreutils-python
- name: set DNS Server
nmcli:
dns4:
- 129.13.64.5
- 141.3.175.65
- 8.8.8.8
state: present
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment