{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/3103","labels_url":"https://api.github.com/repos/ansible/ansible/issues/3103/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/3103/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/3103/events","html_url":"https://github.com/ansible/ansible/issues/3103","id":15060561,"number":3103,"title":"Variable substitution in task names","user":{"login":"StuartHarris","id":203552,"avatar_url":"https://avatars.githubusercontent.com/u/203552?v=3","gravatar_id":"","url":"https://api.github.com/users/StuartHarris","html_url":"https://github.com/StuartHarris","followers_url":"https://api.github.com/users/StuartHarris/followers","following_url":"https://api.github.com/users/StuartHarris/following{/other_user}","gists_url":"https://api.github.com/users/StuartHarris/gists{/gist_id}","starred_url":"https://api.github.com/users/StuartHarris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StuartHarris/subscriptions","organizations_url":"https://api.github.com/users/StuartHarris/orgs","repos_url":"https://api.github.com/users/StuartHarris/repos","events_url":"https://api.github.com/users/StuartHarris/events{/privacy}","received_events_url":"https://api.github.com/users/StuartHarris/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":39,"created_at":"2013-06-03T10:31:03Z","updated_at":"2016-01-06T21:10:45Z","closed_at":"2013-06-03T11:34:18Z","body":"Variables from group_vars are not substituted into task names (like variables passed in other ways):\r\n\r\n```\r\n$ cat group_vars/all.yml\r\n%YAML 1.2\r\n---\r\nfoo: bar\r\n\r\n$ cat hosts\r\nlocalhost\r\n\r\n$ cat play.yml\r\n%YAML 1.2\r\n---\r\n- hosts: all\r\n  gather_facts: no\r\n  tasks:\r\n    - name: test {{foo}}\r\n      debug: msg=\"test {{foo}}\"\r\n\r\n$ ansible-playbook -i hosts -c local play.yaml\r\n\r\nPLAY [all] ********************************************************************\r\n\r\nTASK: [test {{foo}}] **********************************************************\r\nok: [localhost] => {\"msg\": \"test bar\"}\r\n\r\nPLAY RECAP ********************************************************************\r\nlocalhost                  : ok=1    changed=0    unreachable=0    failed=0\r\n\r\n$ ansible-playbook -i hosts -c local play.yaml -e foo=bar\r\n\r\nPLAY [all] ********************************************************************\r\n\r\nTASK: [test bar] **************************************************************\r\nok: [localhost] => {\"msg\": \"test bar\"}\r\n\r\nPLAY RECAP ********************************************************************\r\nlocalhost                  : ok=1    changed=0    unreachable=0    failed=0\r\n```"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/169462043","html_url":"https://github.com/ansible/ansible/issues/3103#issuecomment-169462043","issue_url":"https://api.github.com/repos/ansible/ansible/issues/3103","id":169462043,"user":{"login":"puneet2k5","id":9405937,"avatar_url":"https://avatars.githubusercontent.com/u/9405937?v=3","gravatar_id":"","url":"https://api.github.com/users/puneet2k5","html_url":"https://github.com/puneet2k5","followers_url":"https://api.github.com/users/puneet2k5/followers","following_url":"https://api.github.com/users/puneet2k5/following{/other_user}","gists_url":"https://api.github.com/users/puneet2k5/gists{/gist_id}","starred_url":"https://api.github.com/users/puneet2k5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puneet2k5/subscriptions","organizations_url":"https://api.github.com/users/puneet2k5/orgs","repos_url":"https://api.github.com/users/puneet2k5/repos","events_url":"https://api.github.com/users/puneet2k5/events{/privacy}","received_events_url":"https://api.github.com/users/puneet2k5/received_events","type":"User","site_admin":false},"created_at":"2016-01-06T21:10:45Z","updated_at":"2016-01-06T21:10:45Z","body":"+1"}}