kolla-ansible/ansible/roles/common/tasks/bootstrap.yml
Serhat Demircan c4ebd99030 link kolla_logs volume to docker_runtime_directory if docker_runtime_directory variable exists
Change-Id: I053c4a47e657effe25e8d75a3ef55477635729d2
2019-05-16 14:22:37 +03:00

15 lines
366 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: "{{ docker_runtime_directory or '/var/lib/docker' }}/volumes/kolla_logs/_data"
path: /var/log/kolla
state: link