Merge "Use masakari-api group for setup tasks"
This commit is contained in:
commit
0c8a0cb441
|
@ -43,7 +43,8 @@
|
||||||
|
|
||||||
- include_tasks: mq_setup.yml
|
- include_tasks: mq_setup.yml
|
||||||
when:
|
when:
|
||||||
- inventory_hostname == groups['masakari_all'][0]
|
- "masakari_services['masakari-api']['group'] in group_names"
|
||||||
|
- "inventory_hostname == ((groups[masakari_services['masakari-api']['group']] | intersect(ansible_play_hosts)) | list)[0]"
|
||||||
with_items:
|
with_items:
|
||||||
- oslomsg_setup_host: "{{ masakari_oslomsg_rpc_setup_host }}"
|
- oslomsg_setup_host: "{{ masakari_oslomsg_rpc_setup_host }}"
|
||||||
oslomsg_userid: "{{ masakari_oslomsg_rpc_userid }}"
|
oslomsg_userid: "{{ masakari_oslomsg_rpc_userid }}"
|
||||||
|
@ -62,14 +63,14 @@
|
||||||
- include: masakari_db_setup.yml
|
- include: masakari_db_setup.yml
|
||||||
static: no
|
static: no
|
||||||
when:
|
when:
|
||||||
- inventory_hostname == groups['masakari_all'][0]
|
- "masakari_services['masakari-api']['group'] in group_names"
|
||||||
tags:
|
- "inventory_hostname == ((groups[masakari_services['masakari-api']['group']] | intersect(ansible_play_hosts)) | list)[0]"
|
||||||
- masakari-config
|
|
||||||
|
|
||||||
- include: masakari_service_setup.yml
|
- include: masakari_service_setup.yml
|
||||||
static: no
|
static: no
|
||||||
when:
|
when:
|
||||||
- inventory_hostname == groups['masakari_all'][0]
|
- "masakari_services['masakari-api']['group'] in group_names"
|
||||||
|
- "inventory_hostname == ((groups[masakari_services['masakari-api']['group']] | intersect(ansible_play_hosts)) | list)[0]"
|
||||||
tags:
|
tags:
|
||||||
- masakari-config
|
- masakari-config
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue