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/20230706094301.00c46681%40gmail.com.

Attachment: pgp4nlx0m_SHv.pgp
Description: OpenPGP digital signature

Reply via email to