Fix tmpfiles.d when multiple service are running

This fix tmpfile when multiple services runs in the same host with systemd.

Change-Id: I94f462add1aa6a8a675d7c2f9ccc5801851a1e2d
This commit is contained in:
Marc Gariepy 2016-11-04 13:45:34 -04:00 committed by Jesse Pretorius (odyssey4me)
parent 9578fa9ee9
commit 6be7518b3d
2 changed files with 3 additions and 3 deletions

View File

@ -33,10 +33,10 @@
with_dict: "{{ nova_services }}"
when: inventory_hostname in groups[item.value.group]
- name: Create tempfile.d entry
- name: Create tmpfiles.d entry
template:
src: "nova-systemd-tempfiles.j2"
dest: "/etc/tmpfiles.d/nova.conf"
src: "nova-systemd-tmpfiles.j2"
dest: "/etc/tmpfiles.d/{{ item.value.service_name }}.conf"
mode: "0644"
owner: "root"
group: "root"