Add a missing conditional check to the common config task
The owner and permission check for config directories should be executed only when the service is enabled. Change-Id: I6dd2a8fcce83cba8a9a79b1c302d6b1ef4305144 Closes-Bug: #1734789
This commit is contained in:
parent
e57944b6fe
commit
5025974982
@ -201,13 +201,14 @@
|
||||
- name: Ensuring config directories have correct owner and permission
|
||||
become: true
|
||||
file:
|
||||
path: "{{ node_config_directory }}/{{ item }}"
|
||||
path: "{{ node_config_directory }}/{{ item.key }}"
|
||||
owner: "{{ config_owner_user }}"
|
||||
group: "{{ config_owner_group }}"
|
||||
mode: "0770"
|
||||
with_items:
|
||||
- "fluentd"
|
||||
- "cron"
|
||||
when:
|
||||
- item.value.enabled | bool
|
||||
- item.key != "kolla-toolbox"
|
||||
with_dict: "{{ common_services }}"
|
||||
|
||||
- name: Check common containers
|
||||
kolla_docker:
|
||||
|
Loading…
x
Reference in New Issue
Block a user