2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-14 17:24:04 +00:00
bench/playbooks/roles/dns_caching/tasks/main.yml
2018-02-15 17:48:17 +05:30

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
...