Variables in task names not always being rendered

Hi guys,

Some of my tasks have variables in they’re name however not all of them render the name properly. For example:

  • name: ElasticSearch | downloading elasticsearch-{{ elasticsearch.version }}.deb file from elasticsearch.org

  • name: Graylog2-server | downloading graylog2-{{ graylog2.server.version }} sources from github

The first task has it’s name displayed properly but the second never resolves the variable part, always display it “as is” (i.e. {{ graylog2.server.version }} ). How could that be?

Thanks for any hints.

This is expected.

Why? Imagine you have 500 hosts.

What should the task header be if the variable is different for each host? You can’t tell.

Thus variables that are from inventory (or are facts derived from the remote system) do not appear in task headers.

You can verify that all is well by watching ansible run with “-v”.