Fix tmpfiles.d when multiple service are running

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

Change-Id: Ie3d87a688d04fff70f83f4e98909c2c9620ee370
This commit is contained in:
Marc Gariepy 2016-11-04 14:56:04 -04:00
parent 9546fc407f
commit da101ae6d0
2 changed files with 3 additions and 3 deletions

View File

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