thanks. I guess that is pretty much the same thing as ...

    {{ ansible_play_name.split('_')[0] }}

... (which I figured out in the meantime).

> On 07/06/2023 9:43 AM CEST Vladimir Botka <[email protected]> wrote:
> 
>  
> On Thu, 6 Jul 2023 09:10:48 +0200 (CEST)
> dulhaver via Ansible Project <[email protected]> wrote:
> 
> > ansible_play_name is i.e. POSTGRES_get_utf8.
> > How can I only get POSTGRES
> 
> Try this
> 
>   {{ ansible_play_name|split('_')|first }}
> 
> -- 
> Vladimir Botka

-- 
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/1957915435.911218.1688631288036%40office.mailbox.org.

Reply via email to