update conditional

This commit is contained in:
Chris Hammer 2022-09-21 22:29:18 -04:00
parent 38fd3c8144
commit 10a30d68d5

View File

@ -55,6 +55,6 @@
# vars for all hosts/groups # vars for all hosts/groups
[all:vars] [all:vars]
{% if __use_bastion is defined and __use_bastion|bool %} {% if __bastion_user is defined and __bastion_host is defined %}
ansible_ssh_common_args='-J {{ __bastion_user }}@{{ __bastion_host }}' ansible_ssh_common_args='-J {{ __bastion_user }}@{{ __bastion_host }}'
{% endif %} {% endif %}