From 7e588c057e28a7dfcb252bfefc06735e32acfe77 Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Tue, 24 Jul 2018 19:03:56 +0100 Subject: [PATCH] Use correct group name for MQ tasks There is no 'nova-api' group, and the tasks should run when targeting the conductor nodes anyway. Change-Id: I998fb74a800237d1c4fa535b4871d897c30c7c7d --- tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 836cb6c4..1dfb2b60 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -101,8 +101,8 @@ - include_tasks: mq_setup.yml when: - - "nova_services['nova-api']['group'] in group_names" - - "inventory_hostname == ((groups[nova_services['nova-api']['group']]| intersect(ansible_play_hosts)) | list)[0]" + - "nova_services['nova-conductor']['group'] in group_names" + - "inventory_hostname == ((groups[nova_services['nova-conductor']['group']] | intersect(ansible_play_hosts)) | list)[0]" with_items: - oslomsg_setup_host: "{{ nova_oslomsg_rpc_setup_host }}" oslomsg_userid: "{{ nova_oslomsg_rpc_userid }}"