diff --git a/tasks/nova_pre_install.yml b/tasks/nova_pre_install.yml index 8f66a0da..353b17bf 100644 --- a/tasks/nova_pre_install.yml +++ b/tasks/nova_pre_install.yml @@ -99,13 +99,11 @@ - name: Create nova log dir file: - path: "{{ item.path }}" + path: "/var/log/nova" state: directory - owner: "{{ item.owner|default(nova_system_user_name) }}" - group: "{{ item.group|default(nova_system_group_name) }}" - mode: "{{ item.mode|default('0755') }}" - with_items: - - { path: "/var/log/nova" } + owner: "{{ nova_system_user_name }}" + group: "{{ nova_system_group_name }}" + mode: "0755" when: log_dir.rc != 0 tags: - nova-dirs