Add user and perms to generated hosts.d files

They should be owned by root, and have 0644 perms.

Change-Id: Ibb5998a0137858dfa17f753aafae26a799c16fee
This commit is contained in:
Yolanda Robla 2015-12-18 11:32:19 +01:00
parent affd2eebf4
commit 9f0c08162a
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@
# things that are not directly accessible or reasonable
# to be inspected.
- name: "Setup DHCP for nodes."
template: src=dhcp-host.j2 dest=/etc/dnsmasq.d/bifrost.dhcp-hosts.d/{{ inventory_hostname }}
template: src=dhcp-host.j2 dest=/etc/dnsmasq.d/bifrost.dhcp-hosts.d/{{ inventory_hostname }} owner=root group=root mode=0644
delegate_to: localhost
when: inventory_dhcp | bool
become: yes