Hi Lionel
 

> Is there a way to get the current task name?
>

It is quite obvious but you might have missed it anyway. You do see the 
task name in the square brackets between "TASK" and 
"*************************" where it says [Dump all vars] which is the name 
part of your task... 

TASK [Dump all vars] 
> ************************************************************************************************************************************************************************
> fatal: [localhost]: FAILED! => {"msg": "The task includes an option with 
> an undefined variable. The error was: 'name' is undefined\n\nThe error 
> appears to have been in 'dumpall.yml': line 7, column 7, but may\nbe 
> elsewhere in the file depending on the exact syntax problem.\n\nThe 
> offending line appears to be:\n\n  tasks:\n    - name: Dump all vars\n      
> ^ here\n"}
>         to retry, use: --limit @dumpall.retry
>
>
 Otherwise you might need to specify what you want to achieve or where you 
need to access the task name. Maybe someone knows a way to accomplish what 
you want.

Regards,
Cyril

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9f97f8cc-c8ee-445f-b450-b0ad7a4af8cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to