Fix tmpfiles.d when multiple service are running

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

Change-Id: Ia81011f2a7099162b181003fd4521003c40bb317
This commit is contained in:
Marc Gariepy 2016-11-04 14:57:53 -04:00
parent cfa9efc85f
commit c57b7ae0f1
2 changed files with 3 additions and 3 deletions

View File

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