From 651d619e32075eb715d0169b0e56e3e43b40f377 Mon Sep 17 00:00:00 2001 From: Travis Truman Date: Sun, 6 Mar 2016 16:21:50 -0500 Subject: [PATCH] Removing unneeded with_items usage for clarity Change-Id: I8fd4c115981ec491879508a1f5ebfb9c88aa1fc3 --- tasks/glance_pre_install.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tasks/glance_pre_install.yml b/tasks/glance_pre_install.yml index 46864136..eafd906d 100644 --- a/tasks/glance_pre_install.yml +++ b/tasks/glance_pre_install.yml @@ -81,13 +81,11 @@ - name: Create glance log dir file: - path: "{{ item.path }}" + path: "/var/log/glance" state: directory - owner: "{{ item.owner|default(glance_system_user_name) }}" - group: "{{ item.group|default(glance_system_group_name) }}" - mode: "{{ item.mode|default('0755') }}" - with_items: - - { path: "/var/log/glance" } + owner: "{{ glance_system_user_name }}" + group: "{{ glance_system_group_name }}" + mode: "0755" when: log_dir.rc != 0 tags: - glance-dirs