mirror of
https://github.com/frappe/bench.git
synced 2025-01-25 16:08:23 +00:00
21 lines
460 B
YAML
21 lines
460 B
YAML
|
---
|
||
|
- 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
|
||
|
|