kolla-ansible/ansible/roles/common/tasks/bootstrap.yml
binhong.hua 93e5e8e631 Link kolla_log volume dir to /var/log/kolla
The path /var/lib/docker/volumes/kolla_logs/_data/ is too long
shorter log path will help to debug from log.
The volume path is compatible with docker-engine and docker-ce.

Change-Id: I9195d5f24d938f5060fe748aac3ae58c79ec5abf
2019-01-24 11:02:48 +08:00

15 lines
328 B
YAML

---
- name: Creating log volume
become: true
kolla_docker:
action: "create_volume"
common_options: "{{ docker_common_options }}"
name: "kolla_logs"
- name: Link kolla_logs volume to /var/log/kolla
become: true
file:
src: /var/lib/docker/volumes/kolla_logs/_data
path: /var/log/kolla
state: link