{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/17389","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/17389/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/17389/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/17389/events","html_url":"https://github.com/ansible/ansible/issues/17389","id":174954954,"node_id":"MDU6SXNzdWUxNzQ5NTQ5NTQ=","number":17389,"title":"Deprecation notice for bare variables","user":{"login":"Yatekii","id":529795,"node_id":"MDQ6VXNlcjUyOTc5NQ==","avatar_url":"https://avatars0.githubusercontent.com/u/529795?v=4","gravatar_id":"","url":"https://api.github.com/users/Yatekii","html_url":"https://github.com/Yatekii","followers_url":"https://api.github.com/users/Yatekii/followers","following_url":"https://api.github.com/users/Yatekii/following{/other_user}","gists_url":"https://api.github.com/users/Yatekii/gists{/gist_id}","starred_url":"https://api.github.com/users/Yatekii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yatekii/subscriptions","organizations_url":"https://api.github.com/users/Yatekii/orgs","repos_url":"https://api.github.com/users/Yatekii/repos","events_url":"https://api.github.com/users/Yatekii/events{/privacy}","received_events_url":"https://api.github.com/users/Yatekii/received_events","type":"User","site_admin":false},"labels":[{"id":437720635,"node_id":"MDU6TGFiZWw0Mzc3MjA2MzU=","url":"https://api.github.com/repos/ansible/ansible/labels/affects_2.1","name":"affects_2.1","color":"5319e7","default":false},{"id":849212023,"node_id":"MDU6TGFiZWw4NDkyMTIwMjM=","url":"https://api.github.com/repos/ansible/ansible/labels/docs","name":"docs","color":"0052cc","default":false},{"id":636352796,"node_id":"MDU6TGFiZWw2MzYzNTI3OTY=","url":"https://api.github.com/repos/ansible/ansible/labels/support:core","name":"support:core","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-04T15:44:26Z","updated_at":"2018-12-06T00:39:13Z","closed_at":"2018-12-06T00:39:13Z","author_association":"NONE","body":"##### ISSUE TYPE\n\nDocumentation Report\n##### COMPONENT NAME\n\nDeprecation notice\n##### ANSIBLE VERSION\n\n2.1\n##### CONFIGURATION\n\nNo added settings\n##### OS / ENVIRONMENT\n\nOSX 10.11.5\n##### SUMMARY\n\nThe deprecation notice for bare variables for me looks like this:\n\n[DEPRECATION WARNING]: Using bare variables is deprecated. Update your\nplaybooks so that the environment value uses the full variable syntax\n('{{files.stdout_lines}}').\n\nFor me as maybe not being 100% aware what bare variables are, this is very vague, even with the hint. Maybe this could be elaborated on.\n##### STEPS TO REPRODUCE\n\nUse bare variables in the 'with_items' statement like down below:\n\n```\n- name: Keep unwanted files absent\n  file:\n    path: \"{{ nginx_conf_dir }}/{{ item }}\"\n    state: absent\n  with_items: files.stdout_lines\n  when: item not in nginx_conf_dir_allowed_files\n```\n\ninstead of\n\n```\n- name: Keep unwanted files absent\n  file:\n    path: \"{{ nginx_conf_dir }}/{{ item }}\"\n    state: absent\n  with_items: \"{{ files.stdout_lines }}\"\n  when: item not in nginx_conf_dir_allowed_files\n```\n##### EXPECTED RESULTS\n\nYou will get a notice like this:\n\n[DEPRECATION WARNING]: Using bare variables is deprecated. Update your\nplaybooks so that the environment value uses the full variable syntax\n('{{files.stdout_lines}}').\nThis feature will be removed in a future release.\nDeprecation warnings can be disabled by setting deprecation_warnings=False in\nansible.cfg.\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/444705128","html_url":"https://github.com/ansible/ansible/issues/17389#issuecomment-444705128","issue_url":"https://api.github.com/repos/ansible/ansible/issues/17389","id":444705128,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDcwNTEyOA==","user":{"login":"bcoca","id":836171,"node_id":"MDQ6VXNlcjgzNjE3MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/836171?v=4","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},"created_at":"2018-12-06T00:39:13Z","updated_at":"2018-12-06T00:39:13Z","author_association":"MEMBER","body":"@Yatekii the message does not exist anymore, so I'm going to close this issue."}}
{"actor":{"display_login":"bcoca"}}