{"action":"opened","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/16009","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/16009/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/16009/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/16009/events","html_url":"https://github.com/ansible/ansible/issues/16009","id":157010823,"number":16009,"title":"Issue a warning when trying to assign a value to a reserved variable ","user":{"login":"TaiSHiNet","id":6354880,"avatar_url":"https://avatars.githubusercontent.com/u/6354880?v=3","gravatar_id":"","url":"https://api.github.com/users/TaiSHiNet","html_url":"https://github.com/TaiSHiNet","followers_url":"https://api.github.com/users/TaiSHiNet/followers","following_url":"https://api.github.com/users/TaiSHiNet/following{/other_user}","gists_url":"https://api.github.com/users/TaiSHiNet/gists{/gist_id}","starred_url":"https://api.github.com/users/TaiSHiNet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TaiSHiNet/subscriptions","organizations_url":"https://api.github.com/users/TaiSHiNet/orgs","repos_url":"https://api.github.com/users/TaiSHiNet/repos","events_url":"https://api.github.com/users/TaiSHiNet/events{/privacy}","received_events_url":"https://api.github.com/users/TaiSHiNet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-26T15:25:53Z","updated_at":"2016-05-26T15:25:53Z","closed_at":null,"body":"<!--- Verify first that your issue/request is not already reported in GitHub -->\r\n\r\n##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest: -->\r\n - Feature Idea\r\n\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\n```\r\nansible 2.0.2.0\r\n```\r\n\r\n##### CONFIGURATION\r\n<!---\r\nMention any settings you have changed/added/removed in ansible.cfg\r\n(or using the ANSIBLE_* environment variables).\r\n-->\r\n\r\n##### OS / ENVIRONMENT\r\n<!---\r\nMention the OS you are running Ansible from, and the OS you are\r\nmanaging, or say “N/A” for anything that is not platform-specific.\r\n-->\r\nN/A\r\n\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\nWhen trying to assign a value to a reserved variable name, there are no warnings which can lead to unexpected behavior\r\n\r\n##### STEPS TO REPRODUCE\r\n<!---\r\nFor bugs, show exactly how to reproduce the problem.\r\nFor new features, show how the feature would be used.\r\n-->\r\nCreate any role, assign a reserved variable a value \r\ninventory_file: \"whatever\"\r\n\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n```\r\nplaybook.yml:\r\n- name: test\r\n  roles:\r\n    - test\r\n\r\nroles/test/defaults/main.yml:\r\ninventory_file: \"inventory.csv\"\r\n\r\nroles/test/tasks/main.yml:\r\n- debug: msg=\"{{ inventory_file }}\"\r\n\r\nansible-playbook -i /dev/null playbook.yml\r\n```\r\n\r\n<!--- You can also paste gist.github.com links for larger files -->\r\n\r\n##### EXPECTED RESULTS\r\n<!--- What did you expect to happen when running the steps above? -->\r\n``` WARNING: You're trying to assign a value to a reserved variable name\r\nmsg=/dev/null ```\r\n\r\nor \r\n```\r\nmsg=\"inventory.csv\"\r\n```\r\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with extra verbosity (-vvvv) -->\r\n\r\n<!--- Paste verbatim command output between quotes below -->\r\n```\r\nmsg=\"/dev/null\"\r\n```\r\n"}}
{"actor":{"display_login":"TaiSHiNet"}}