mirror of
https://github.com/frappe/bench.git
synced 2024-11-12 00:06:36 +00:00
21 lines
463 B
YAML
21 lines
463 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
|
|
...
|