3 ms·
You can use jinja expressions inline with your Ansible tasks' yaml if you want to as well. As for whether that's a good idea or a mess to read is in the eye of
by notabee 4y ago
You can use jinja expressions inline with your Ansible tasks' yaml if you want to as well. As for whether that's a good idea or a mess to read is in the eye of the beholder. Personally I do it only as a last resort, but it has been nice to have occasionally rather than some clunky multiple-task alternative.
- tryauuum 4y agoIt's not the same, you cannot put a jinja condition in an arbitrary place of your ansible yaml, even at the middle of any line (though it's indeed a questionable approach)