{"action":"closed","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/6610","labels_url":"https://api.github.com/repos/ansible/ansible/issues/6610/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/6610/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/6610/events","html_url":"https://github.com/ansible/ansible/issues/6610","id":29864840,"number":6610,"title":"Default variable in task name breaks task name templating","user":{"login":"ninetythirty","id":4730320,"avatar_url":"https://avatars.githubusercontent.com/u/4730320?v=3","gravatar_id":"","url":"https://api.github.com/users/ninetythirty","html_url":"https://github.com/ninetythirty","followers_url":"https://api.github.com/users/ninetythirty/followers","following_url":"https://api.github.com/users/ninetythirty/following{/other_user}","gists_url":"https://api.github.com/users/ninetythirty/gists{/gist_id}","starred_url":"https://api.github.com/users/ninetythirty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ninetythirty/subscriptions","organizations_url":"https://api.github.com/users/ninetythirty/orgs","repos_url":"https://api.github.com/users/ninetythirty/repos","events_url":"https://api.github.com/users/ninetythirty/events{/privacy}","received_events_url":"https://api.github.com/users/ninetythirty/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible/labels/bug_report","name":"bug_report","color":"fbca04"},{"url":"https://api.github.com/repos/ansible/ansible/labels/P5","name":"P5","color":"bfdadc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-03-20T22:44:28Z","updated_at":"2015-06-18T18:28:52Z","closed_at":"2015-06-18T18:28:52Z","body":"##### Issue Type:\r\n\r\nBug Report\r\n\r\n##### Ansible Version:\r\n\r\nansible 1.6 (devel 991399edf0)\r\n\r\n##### Environment:\r\n\r\nUbuntu 10.04\r\n\r\n##### Summary:\r\n\r\nDefault variable in task name breaks task name templating\r\n\r\n##### Steps To Reproduce:\r\n\r\nSee below.\r\n\r\n##### Expected Results:\r\n\r\nSee below.\r\n\r\n##### Actual Results:\r\n\r\nSee below.\r\n\r\n\r\nHere is a very simple example that illustrates the problem. Templating in the task itself is correct in all cases, as shown by the debug messages.\r\n\r\n```\r\n--- # role/defaults/main.yaml\r\ncommon: d-pickaxe\r\ndefault: d-feather\r\n\r\n--- # role/vars/main.yaml\r\ncommon: v-overridden\r\nvar: v-sail\r\n\r\n--- # role/tasks/main.yaml\r\n- name: default={{ default }}\r\n  debug: msg=\"Default variables in task names don't template. default={{ default }}\"\r\n\r\n- name: default={{ default }} var={{ var }}\r\n  debug: msg=\"In fact, the mere existence of a default var messes up all task name templating. default={{ default }} var={{ var }}\"\r\n\r\n- name: var={{ var }}\r\n  debug: msg=\"But this works fine. var={{ var }}\"\r\n\r\n- name: common={{ common }}\r\n  debug: msg=\"This works fine. common={{ common }}\"\r\n\r\n- name: var={{ var }} common={{ common }}\r\n  debug: msg=\"And this works fine. var={{ var }} common={{ common }}\"\r\n```\r\n\r\nOutput (uninteresting lines removed):\r\n```\r\nPLAY [host] *******************************************************************\r\n\r\nTASK: [role | default={{default}}] ********************************************\r\n    \"msg\": \"\"Default variables in task names don't template. default=d-feather\"\r\n\r\nTASK: [role | default={{default}} var={{var}}] ********************************\r\n    \"msg\": \"In fact, the mere existence of a default var messes up all task name templating. default=d-feather var=v-sail\"\r\n\r\nTASK: [role | var=v-sail] *****************************************************\r\n    \"msg\": \"But this works fine. var=v-sail\"\r\n\r\nTASK: [role | common=v-overridden] ********************************************\r\n    \"msg\": \"This works fine. common=v-overridden\"\r\n\r\nTASK: [role | var=v-sail common=v-overridden] *********************************\r\n    \"msg\": \"And this works fine. var=v-sail common=v-overridden\"\r\n\r\nPLAY RECAP ********************************************************************\r\nhost               : ok=5    changed=0    unreachable=0    failed=0\r\n```"}}