On Mon, 7 Feb 2022 at 15:29, [email protected] <[email protected]>
wrote:

> Hi
> I have the following playbook.
> In the environment.yml file I have a parameter "tls=true"
>
> In the below task , In tghe URL I would put *https* if tls=true and *http*
> if false.
>
Try:

        url: "http{{ 's' if tls else '' }}://{{ server.hostname }}.{{
domain }}:9999/api//{{ cluster_name }}"


-- 
Dick Visser
Trust & Identity Service Operations Manager
GÉANT

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwNedC_JpN-VTfx0kDERgABWwOsm4Yr5wyh2Xi-BgpuYwQ%40mail.gmail.com.

Reply via email to