Ensure that the LXC container log is also destroyed
When a container's data is destroyed, this patch ensures that the LXC log file for the container is also destroyed. Change-Id: I80c46c536dcfbb3ee1a0572aa25fb21b651799fe
This commit is contained in:
parent
e940d3caf2
commit
656543d5f2
@ -38,7 +38,7 @@
|
|||||||
- force_containers_destroy | bool
|
- force_containers_destroy | bool
|
||||||
tags:
|
tags:
|
||||||
- container-directories-service
|
- container-directories-service
|
||||||
- name: Destroy container data directories
|
- name: Destroy container data
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
state: "absent"
|
state: "absent"
|
||||||
@ -46,6 +46,7 @@
|
|||||||
- "/openstack/{{ container_name }}"
|
- "/openstack/{{ container_name }}"
|
||||||
- "/openstack/backup/{{ container_name }}"
|
- "/openstack/backup/{{ container_name }}"
|
||||||
- "/openstack/log/{{ container_name }}"
|
- "/openstack/log/{{ container_name }}"
|
||||||
|
- "/var/log/lxc/lxc-{{ container_name }}.log"
|
||||||
delegate_to: "{{ physical_host }}"
|
delegate_to: "{{ physical_host }}"
|
||||||
when:
|
when:
|
||||||
- force_containers_destroy | bool
|
- force_containers_destroy | bool
|
||||||
|
Loading…
x
Reference in New Issue
Block a user