condition in SOURCE VARIABLES

is that possible?

I want to do something like this:
vpc_destination_variable: “{{ ip_address if ec2_platform == ‘windows’ else private_ip_address }}”

what I want is, that if I have a windows ec2, that connection will be with public IP address - other will be private IP.

Thanks.

Yes,

Try something like this:

vpc_destination_variable: “{% if ec2_platform == ‘windows’ %}{{ ip_address }}{% else %}{{ private_ip_address }}{% endif %}”

Ok, I will try.

Thanks :pray: