this is probably easy but I cannot figure out how to do this with Ansible:
some task that registers variable x
some task that registers variable y
some task that registers variable z
register a variable ‘a’ for which holds: if x == True, a=y, else, a=z
some task that uses a
How can this be done with Ansible? I currently use two conditional tasks for the assignment and register the variable ‘a’ with a shell echo command – this does not seem right to me