2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-25 16:08:23 +00:00

21 lines
460 B
YAML
Raw Normal View History

2017-08-29 12:21:06 +05:30
---
- name: check NetworkManager.conf exists
stat:
path: /etc/NetworkManager/NetworkManager.conf
register: result
- name: unmask NetworkManager service
command: systemctl unmask NetworkManager
when: result.stat.exists
- name: add dnsmasq to network config
lineinfile: >
dest=/etc/NetworkManager/NetworkManager.conf
regexp="dns="
line="dns=dnsmasq"
state=present
when: result.stat.exists
notify:
- restart network manager