Create log aggregation parent directory
During lxc hosts setup, mv command fails if the log aggregation parent /openstack/log/ does not exist. This patch makes sure that the directory exists before calling mv command. Change-Id: I3a337b73fcaa446164d1bc8bbae73dbeea694d7d Closes-Bug: #1612374
This commit is contained in:
parent
398d8afc40
commit
a4f8e287b6
@ -23,6 +23,10 @@
|
||||
stat:
|
||||
path: "/var/log/lxc"
|
||||
register: _lxc_log_dir
|
||||
- name: Create the log aggregation parent directory
|
||||
file:
|
||||
path: "/openstack/log"
|
||||
state: directory
|
||||
- name: Move the existing folder to the log aggregation parent
|
||||
command: "mv /var/log/lxc /openstack/log/{{ inventory_hostname }}-lxc"
|
||||
when:
|
||||
|
Loading…
Reference in New Issue
Block a user