Fix tmpfiles.d when multiple service are running

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

Change-Id: I1cd3001d4cc1559cd5b9cdd6f2f73861745a2bc0
This commit is contained in:
Marc Gariepy 2016-11-04 14:03:33 -04:00
parent 93c8c2838b
commit e31e6f100f
2 changed files with 3 additions and 3 deletions

View File

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