cancel
Showing results for 
Search instead for 
Did you mean: 
harjitsachar
Flight Engineer
Flight Engineer
  • 1,582 Views

Jinja2 "if elif" as replacement for Ansible "when"

Hi,

I am starting to use Jinja2  "if elif endif" more and more as a replacement for Ansible "when"  as it cuts down on typing same code again and again.

Is there some preference in Ansible exams that we have to use Ansible "when" rather than Jinja2  "if elif endif"  for conditionals.

Labels (2)
0 Kudos
0 Replies
Join the discussion
You must log in to join this conversation.