{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/11882","labels_url":"https://api.github.com/repos/ansible/ansible/issues/11882/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/11882/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/11882/events","html_url":"https://github.com/ansible/ansible/issues/11882","id":99519739,"number":11882,"title":"\"Streamlined\" include syntax no longer works","user":{"login":"bretmartin","id":2530628,"avatar_url":"https://avatars.githubusercontent.com/u/2530628?v=3","gravatar_id":"","url":"https://api.github.com/users/bretmartin","html_url":"https://github.com/bretmartin","followers_url":"https://api.github.com/users/bretmartin/followers","following_url":"https://api.github.com/users/bretmartin/following{/other_user}","gists_url":"https://api.github.com/users/bretmartin/gists{/gist_id}","starred_url":"https://api.github.com/users/bretmartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bretmartin/subscriptions","organizations_url":"https://api.github.com/users/bretmartin/orgs","repos_url":"https://api.github.com/users/bretmartin/repos","events_url":"https://api.github.com/users/bretmartin/events{/privacy}","received_events_url":"https://api.github.com/users/bretmartin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible/labels/bug_report","name":"bug_report","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ansible/ansible/milestones/5","html_url":"https://github.com/ansible/ansible/milestones/v2","labels_url":"https://api.github.com/repos/ansible/ansible/milestones/5/labels","id":975800,"number":5,"title":"v2","description":null,"creator":{"login":"bcoca","id":836171,"avatar_url":"https://avatars.githubusercontent.com/u/836171?v=3","gravatar_id":"","url":"https://api.github.com/users/bcoca","html_url":"https://github.com/bcoca","followers_url":"https://api.github.com/users/bcoca/followers","following_url":"https://api.github.com/users/bcoca/following{/other_user}","gists_url":"https://api.github.com/users/bcoca/gists{/gist_id}","starred_url":"https://api.github.com/users/bcoca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcoca/subscriptions","organizations_url":"https://api.github.com/users/bcoca/orgs","repos_url":"https://api.github.com/users/bcoca/repos","events_url":"https://api.github.com/users/bcoca/events{/privacy}","received_events_url":"https://api.github.com/users/bcoca/received_events","type":"User","site_admin":false},"open_issues":22,"closed_issues":172,"state":"open","created_at":"2015-02-11T19:43:06Z","updated_at":"2015-08-07T04:07:07Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-08-06T20:37:20Z","updated_at":"2015-08-07T12:58:56Z","closed_at":"2015-08-06T21:21:36Z","body":"At http://docs.ansible.com/ansible/playbooks_roles.html#task-include-files-and-encouraging-reuse I find\r\n> If you are running Ansible 1.4 and later, include syntax is streamlined to match roles, and also allows passing list and dictionary parameters:\r\n> ```\r\n> tasks:\r\n>  - { include: wordpress.yml, wp_user: timmy, ssh_keys: [ 'keys/one.txt', 'keys/two.txt' ] }\r\n> ```\r\n\r\nI've been using this syntax but I find that it doesn't work anymore after updating to a recent `devel` revision.\r\n\r\nmain.yml:\r\n```\r\n---\r\n\r\n- include: otherfile.yml\r\n  message: hello\r\n```\r\n\r\notherfile.yml:\r\n```\r\n---\r\n\r\n- debug: var=message\r\n```\r\n\r\nResults with e16b24c01e:\r\n```\r\nERROR! 'message' is not a valid attribute for a Task\r\n\r\nThe error appears to have been in '/Users/bam/dev/h3-ansible/roles/test/tasks/main.yml': line 3, column 3, but may\r\nbe elsewhere in the file depending on the exact syntax problem.\r\n\r\nThe offending line appears to be:\r\n\r\n\r\n- include: otherfile.yml\r\n  ^ here\r\n```\r\n\r\nResults with tag `v1.9.2-1`:\r\n```\r\nPLAY [localhost] **************************************************************\r\n\r\nGATHERING FACTS ***************************************************************\r\nok: [localhost]\r\n\r\nTASK: [test | debug var=message] **********************************************\r\nok: [localhost] => {\r\n    \"var\": {\r\n        \"message\": \"hello\"\r\n    }\r\n}\r\n\r\nPLAY RECAP ********************************************************************\r\nlocalhost                  : ok=2    changed=0    unreachable=0    failed=0\r\n```"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/128693561","html_url":"https://github.com/ansible/ansible/issues/11882#issuecomment-128693561","issue_url":"https://api.github.com/repos/ansible/ansible/issues/11882","id":128693561,"user":{"login":"bretmartin","id":2530628,"avatar_url":"https://avatars.githubusercontent.com/u/2530628?v=3","gravatar_id":"","url":"https://api.github.com/users/bretmartin","html_url":"https://github.com/bretmartin","followers_url":"https://api.github.com/users/bretmartin/followers","following_url":"https://api.github.com/users/bretmartin/following{/other_user}","gists_url":"https://api.github.com/users/bretmartin/gists{/gist_id}","starred_url":"https://api.github.com/users/bretmartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bretmartin/subscriptions","organizations_url":"https://api.github.com/users/bretmartin/orgs","repos_url":"https://api.github.com/users/bretmartin/repos","events_url":"https://api.github.com/users/bretmartin/events{/privacy}","received_events_url":"https://api.github.com/users/bretmartin/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T12:58:56Z","updated_at":"2015-08-07T12:58:56Z","body":"@jimi-c Thanks! Should the docs be updated to note the deprecation? The current language makes this sound fully supported"}}