2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-24 13:09:01 +00:00
bench/playbooks/roles/dns_caching/tasks/main.yml

21 lines
463 B
YAML
Raw Normal View History

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