Merge "Add default value for log_dirs in os-log-dir-setup.yml"

This commit is contained in:
Zuul 2018-04-07 00:37:39 +00:00 committed by Gerrit Code Review
commit c293536b63

View File

@ -27,7 +27,7 @@
file: file:
path: "{{ item.src }}" path: "{{ item.src }}"
state: directory state: directory
with_items: "{{ log_dirs }}" with_items: "{{ log_dirs|default([]) }}"
when: is_metal | bool when: is_metal | bool
tags: tags:
- common-log - common-log
@ -40,7 +40,7 @@
group: "{{ item.group|default(omit) }}" group: "{{ item.group|default(omit) }}"
state: "link" state: "link"
force: "yes" force: "yes"
with_items: "{{ log_dirs }}" with_items: "{{ log_dirs|default([]) }}"
when: is_metal | bool when: is_metal | bool
tags: tags:
- common-log - common-log