From e31e6f100f4f1519f1963fdb9f24ff181c347fe0 Mon Sep 17 00:00:00 2001 From: Marc Gariepy Date: Fri, 4 Nov 2016 14:03:33 -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: I1cd3001d4cc1559cd5b9cdd6f2f73861745a2bc0 --- tasks/glance_init_systemd.yml | 6 +++--- ...ance-systemd-tempfiles.j2 => glance-systemd-tmpfiles.j2} | 0 2 files changed, 3 insertions(+), 3 deletions(-) rename templates/{glance-systemd-tempfiles.j2 => glance-systemd-tmpfiles.j2} (100%) diff --git a/tasks/glance_init_systemd.yml b/tasks/glance_init_systemd.yml index 07a85e94..14a83f83 100644 --- a/tasks/glance_init_systemd.yml +++ b/tasks/glance_init_systemd.yml @@ -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" diff --git a/templates/glance-systemd-tempfiles.j2 b/templates/glance-systemd-tmpfiles.j2 similarity index 100% rename from templates/glance-systemd-tempfiles.j2 rename to templates/glance-systemd-tmpfiles.j2