Fix Vagrant logic

This commit is contained in:
Sam A. 2023-03-05 23:10:53 +01:00
parent 9a4912f9b5
commit 2d11a664b4
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -9,11 +9,13 @@
loop: "{{ services | dict2items(value_name='service') }}" loop: "{{ services | dict2items(value_name='service') }}"
when: single_service is not defined and when: single_service is not defined and
item.service.file is defined and item.service.file is defined and
item.service.disabled_in_vagrant is not defined (item.service.disabled_in_vagrant is not defined or
not (item.service.disabled_in_vagrant and vagrant))
- name: setup single service - name: setup single service
include_tasks: "services/{{ services[single_service].file }}" include_tasks: "services/{{ services[single_service].file }}"
when: single_service is defined and when: single_service is defined and
single_service in services and single_service in services and
services[single_service].file is defined and services[single_service].file is defined and
services[single_service].disabled_in_vagrant is not defined (services[single_service].disabled_in_vagrant is not defined or
not (services[single_service].disabled_in_vagrant and vagrant))