Fix tmpfiles.d when multiple service are running

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

Change-Id: Ibbac2bfd94affe27375cce13f5f91adcf37cb194
This commit is contained in:
Marc Gariepy 2016-11-04 14:53:36 -04:00
parent 5e2ad01ed8
commit d277ccc437
2 changed files with 3 additions and 3 deletions

View File

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