From 924fe699cd51fba1a26b3335afa81788e6b923ce Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Mon, 29 Jul 2019 20:14:42 +0300 Subject: [PATCH] Fix db_setup condition This patch changes condition when db_setup is launched since it used non-existent key for retrieving host for execution. Change-Id: I98fc2e4703cfec45da118958bf79a4bea70b5ff9 --- tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 9c696ff..acc2d43 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -70,8 +70,8 @@ - import_tasks: db_setup.yml when: - - "manila_services['manila-api']['group'] in group_names" - - "inventory_hostname == ((groups[manila_services['manila-api']['group']]| intersect(ansible_play_hosts)) | list)[0]" + - "manila_services['manila_api']['group'] in group_names" + - "inventory_hostname == ((groups[manila_services['manila_api']['group']]| intersect(ansible_play_hosts)) | list)[0]" vars: _oslodb_setup_host: "{{ manila_db_setup_host }}" _oslodb_databases: