From 5e37f5bc40107c79b0609476b8baacbde54f3a6e Mon Sep 17 00:00:00 2001 From: Byron McCollum Date: Thu, 16 Aug 2018 16:46:42 -0500 Subject: [PATCH] Move swift ring tasks before systemd tasks Ensure swift rings are present before setting up systemd units and starting the swift services. Change-Id: I2d3d1355d9624a5f5caa30e49e086326bed13976 --- tasks/main.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 9df7bec9..706f8106 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -87,6 +87,19 @@ tags: - swift-config +- include_tasks: swift_key_setup.yml + when: + - "swift_do_sync | bool" + tags: + - swift-config + +- include_tasks: swift_rings.yml + when: + - "swift_do_sync | bool" + tags: + - swift-config + - swift-rings + - name: Run the systemd service role include_role: name: systemd_service @@ -138,18 +151,5 @@ tags: - swift-config -- include_tasks: swift_key_setup.yml - when: - - "swift_do_sync | bool" - tags: - - swift-config - -- include_tasks: swift_rings.yml - when: - - "swift_do_sync | bool" - tags: - - swift-config - - swift-rings - - name: Flush handlers meta: flush_handlers