upp please !!

Someone have an idea please guy !!!

If my var = "jesuisla"

How get only "jesuis"

Thanks

Le mercredi 13 février 2019 10:26:22 UTC+1, ryad9...@gmail.com a écrit :
>
> Hi all,
>
> I don't now why this task not works:
>
> - set_fact:
>       my_variable: "{{ ansible_user[0 and 1] + 'gis' if 
> ansible_user!='wildfly' else 'wildfly' }}"
>
> But *ansible_user[0] + ansible_user[1]* works but i want one syntaxe 
> shorter, exemple *ansible_user[0 and 1] *but this syntax not works !!
>
> Someone have an idea please guy !!
>
> Thank you very much
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/54c75584-be0b-4ef9-915b-cc987bea77fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to