Fix tmpfiles.d when multiple service are running
This fix tmpfile when multiple services runs in the same host with systemd. Change-Id: I94f462add1aa6a8a675d7c2f9ccc5801851a1e2d
This commit is contained in:
parent
9578fa9ee9
commit
6be7518b3d
@ -33,10 +33,10 @@
|
|||||||
with_dict: "{{ nova_services }}"
|
with_dict: "{{ nova_services }}"
|
||||||
when: inventory_hostname in groups[item.value.group]
|
when: inventory_hostname in groups[item.value.group]
|
||||||
|
|
||||||
- name: Create tempfile.d entry
|
- name: Create tmpfiles.d entry
|
||||||
template:
|
template:
|
||||||
src: "nova-systemd-tempfiles.j2"
|
src: "nova-systemd-tmpfiles.j2"
|
||||||
dest: "/etc/tmpfiles.d/nova.conf"
|
dest: "/etc/tmpfiles.d/{{ item.value.service_name }}.conf"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
owner: "root"
|
owner: "root"
|
||||||
group: "root"
|
group: "root"
|
||||||
|
Loading…
Reference in New Issue
Block a user