From 5dec08a9820cfb085d1db1a5f9c940b81d5dcbbc 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 --- playbooks/roles/os_swift/tasks/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/playbooks/roles/os_swift/tasks/main.yml b/playbooks/roles/os_swift/tasks/main.yml index 243d2c300b..5f072eacf3 100644 --- a/playbooks/roles/os_swift/tasks/main.yml +++ b/playbooks/roles/os_swift/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