diff options
author | Aaron LI <aly@aaronly.me> | 2017-06-14 23:24:25 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-06-14 23:24:25 +0800 |
commit | d9bfda6c292c6b90eb7ba295425a74679e6d9c13 (patch) | |
tree | 382f7400c5bde3ff3535dee66f1df7e09eb3f21a /roles/dnsmasq/tasks | |
parent | 71250e63079886396de414981b3cd11075d83007 (diff) | |
download | debian-hpc-d9bfda6c292c6b90eb7ba295425a74679e6d9c13.tar.bz2 |
Add basic dnsmasq role
Diffstat (limited to 'roles/dnsmasq/tasks')
-rw-r--r-- | roles/dnsmasq/tasks/main.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/roles/dnsmasq/tasks/main.yml b/roles/dnsmasq/tasks/main.yml new file mode 100644 index 0000000..5275ed5 --- /dev/null +++ b/roles/dnsmasq/tasks/main.yml @@ -0,0 +1,18 @@ +--- +- name: Ensure that BIND is not installed in order to avoid conflicts with dnsmasq + apt: + name: bind9 + state: absent + +- name: Install dnsmasq + apt: + name: dnsmasq + state: present + +- name: Generate the dnsmasq configuration file + template: + src: dnsmasq.conf.j2 + dest: /etc/dnsmasq.conf + notify: Restart dnsmasq + +# vim: set ft=yaml sw=2: |