forked from data.coop/ansible
Use value_name='service' in setup services task
This commit is contained in:
parent
a89140ef51
commit
e983499f9b
|
@ -4,11 +4,11 @@
|
||||||
name: external_services
|
name: external_services
|
||||||
|
|
||||||
- name: setup services
|
- name: setup services
|
||||||
include_tasks: "services/{{ item.value.file }}"
|
include_tasks: "services/{{ item.service.file }}"
|
||||||
loop: "{{ services | dict2items }}"
|
loop: "{{ services | dict2items(value_name='service') }}"
|
||||||
when: single_service is not defined and
|
when: single_service is not defined and
|
||||||
item.value.file is defined and
|
item.service.file is defined and
|
||||||
item.value.disabled_in_vagrant is not defined
|
item.service.disabled_in_vagrant is not defined
|
||||||
|
|
||||||
- name: setup single service
|
- name: setup single service
|
||||||
include_tasks: "services/{{ services[single_service].file }}"
|
include_tasks: "services/{{ services[single_service].file }}"
|
||||||
|
|
Loading…
Reference in a new issue