Run dnsmasq as the dnsmasq user (#1029)

* Run dnsmasq as the dnsmasq user

There is a task that checks whether the dnsmasq user exists.
However, dnsmasq is configured to run as user "nobody" instead.
This change lets dnsmasq run as user "dnsmasq".

* remove dnsmasq user task
This commit is contained in:
Fabian Foerg 2018-07-30 06:01:49 -07:00 committed by Dan Guido
parent b88f697b28
commit 3ddd0ac30f
2 changed files with 1 additions and 4 deletions

View file

@ -8,9 +8,6 @@
- name: Dnsmasq installed
package: name=dnsmasq
- name: Ensure that the dnsmasq user exist
user: name=dnsmasq groups=nogroup append=yes state=present
- name: The dnsmasq directory created
file: dest=/var/lib/dnsmasq state=directory mode=0755 owner=dnsmasq group=nogroup

View file

@ -103,7 +103,7 @@ server={{ host }}
# If you want dnsmasq to change uid and gid to something other
# than the default, edit the following lines.
user=nobody
user=dnsmasq
group=nogroup
# If you want dnsmasq to listen for DHCP and DNS requests only on