From c584902590bbe3dd0a06032a499e3e80dadf8f10 Mon Sep 17 00:00:00 2001 From: Andy McCrae Date: Mon, 7 Dec 2015 16:22:30 +0000 Subject: [PATCH] Skip Keystone task when not using swift w keystone It's possible to remove keystoneauth from the middleware pipeline, but the play will fail because the keystone swift User/roles/perms tasks will not be able to succeed. This patch skips those tasks when not using keystoneauth in the middleware pipeline. Change-Id: I87143b5c220dc312e2cb5d7e3dd3e9e01609ff91 Closes-Bug: #1523581 --- tasks/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 243d2c30..5f072eac 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -30,8 +30,9 @@ - swift-storage-hosts - include: swift_service_setup.yml - when: > - inventory_hostname == groups['swift_all'][0] + when: + - inventory_hostname == groups['swift_all'][0] + - '"keystoneauth" in swift_middleware_list' - name: Flush handlers meta: flush_handlers