I have a player with enabled:
- include: include1.yml
when: doinclude | default('true')
- include: include2.yml
when: doinclude | default('true')
Is it possible not to repeat the condition? I tried to block, but it seems that blocks cannot be used in this context:
- block:
- include: include1.yml
- include: include2.yml
when: doinclude | default('true')
Is there any way to do this? I also tried something like
- name: test
hosts: all
tasks:
- block:
- include: include1.yml
- include: include2.yml
when: doinclude | default('true')
which also does not work
source
share