From d277ccc4375b3839826006e273765d498adc180d Mon Sep 17 00:00:00 2001 From: Marc Gariepy Date: Fri, 4 Nov 2016 14:53:36 -0400 Subject: [PATCH] Fix tmpfiles.d when multiple service are running This fix tmpfile when multiple services runs in the same host with systemd. Change-Id: Ibbac2bfd94affe27375cce13f5f91adcf37cb194 --- tasks/swift_init_systemd.yml | 6 +++--- ...swift-systemd-tempfiles.j2 => swift-systemd-tmpfiles.j2} | 0 2 files changed, 3 insertions(+), 3 deletions(-) rename templates/{swift-systemd-tempfiles.j2 => swift-systemd-tmpfiles.j2} (100%) diff --git a/tasks/swift_init_systemd.yml b/tasks/swift_init_systemd.yml index fa3f1030..6d64bcf0 100644 --- a/tasks/swift_init_systemd.yml +++ b/tasks/swift_init_systemd.yml @@ -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" diff --git a/templates/swift-systemd-tempfiles.j2 b/templates/swift-systemd-tmpfiles.j2 similarity index 100% rename from templates/swift-systemd-tempfiles.j2 rename to templates/swift-systemd-tmpfiles.j2