From 5f1c6eb018f979570c4b2e90848121e6d7e7cb67 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Mon, 13 Apr 2020 15:16:25 +0300 Subject: [PATCH] Run service_setup only once Currently we're executing os_keystone_role against all horizon hosts, while we need to execute it just once. Thist patch fixes this behaviour. Change-Id: Ie93cb1b805c67ae382ac722378b526bbd1779ed5 --- tasks/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 6c71ce5f..14dad712 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -77,6 +77,9 @@ - horizon-ssl - import_tasks: horizon_service_setup.yml + when: + - ('horizon_all' in group_names) + - inventory_hostname == groups['horizon_all'][0] tags: - horizon-config