Is this normal/expected?
I am trying to use conditional roles, and once it hits a negative condition, it skips every role afterwards:
- hosts: all
roles:
- common
- role: AppDynamics
when: appdynamics
- java
"appdynamics" is loaded as True/False from a group_vars, and is different depending on the environment loaded (different inventories, group_vars etc... for PROD vs. TEST vs. DEV).
With the playbook above, the java role is skipped when appdynamic is False. If I move the java role above the AppDynamics role, then the java role never gets skipped.
Should the condition affect roles after it?
Thanks.