2017-08-29 06:51:06 +00:00
|
|
|
---
|
2018-02-05 09:37:14 +00:00
|
|
|
- name: Check NetworkManager.conf exists
|
2017-08-29 06:51:06 +00:00
|
|
|
stat:
|
|
|
|
path: /etc/NetworkManager/NetworkManager.conf
|
|
|
|
register: result
|
|
|
|
|
2018-02-05 09:37:14 +00:00
|
|
|
- name: Unmask NetworkManager service
|
2017-08-29 06:51:06 +00:00
|
|
|
command: systemctl unmask NetworkManager
|
|
|
|
when: result.stat.exists
|
|
|
|
|
2018-02-05 09:37:14 +00:00
|
|
|
- name: Add dnsmasq to network config
|
2017-08-29 06:51:06 +00:00
|
|
|
lineinfile: >
|
|
|
|
dest=/etc/NetworkManager/NetworkManager.conf
|
|
|
|
regexp="dns="
|
|
|
|
line="dns=dnsmasq"
|
|
|
|
state=present
|
|
|
|
when: result.stat.exists
|
|
|
|
notify:
|
|
|
|
- restart network manager
|
2018-02-05 09:37:14 +00:00
|
|
|
...
|