manage DNS with resolv.conf again
This commit is contained in:
parent
48d35b39c0
commit
39d94671de
2 changed files with 6 additions and 0 deletions
|
@ -6,6 +6,11 @@
|
||||||
|
|
||||||
- name: Install services
|
- name: Install services
|
||||||
hosts: all
|
hosts: all
|
||||||
|
pre_tasks:
|
||||||
|
- name: Copy resolv.conf
|
||||||
|
copy:
|
||||||
|
src: resolv.conf
|
||||||
|
dest: /etc/resolv.conf
|
||||||
roles:
|
roles:
|
||||||
- {role: 'setup-apt', tags: 'setup-apt'}
|
- {role: 'setup-apt', tags: 'setup-apt'}
|
||||||
- {role: 'dnsmasq', tags: 'dnsmasq'}
|
- {role: 'dnsmasq', tags: 'dnsmasq'}
|
||||||
|
|
1
ansible/resolv.conf
Normal file
1
ansible/resolv.conf
Normal file
|
@ -0,0 +1 @@
|
||||||
|
nameserver 192.168.30.1
|
Reference in a new issue