{"action":"opened","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/13644","labels_url":"https://api.github.com/repos/ansible/ansible/issues/13644/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/13644/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/13644/events","html_url":"https://github.com/ansible/ansible/issues/13644","id":123569119,"number":13644,"title":"Deprecation warning with args form","user":{"login":"lberruti","id":1135605,"avatar_url":"https://avatars.githubusercontent.com/u/1135605?v=3","gravatar_id":"","url":"https://api.github.com/users/lberruti","html_url":"https://github.com/lberruti","followers_url":"https://api.github.com/users/lberruti/followers","following_url":"https://api.github.com/users/lberruti/following{/other_user}","gists_url":"https://api.github.com/users/lberruti/gists{/gist_id}","starred_url":"https://api.github.com/users/lberruti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lberruti/subscriptions","organizations_url":"https://api.github.com/users/lberruti/orgs","repos_url":"https://api.github.com/users/lberruti/repos","events_url":"https://api.github.com/users/lberruti/events{/privacy}","received_events_url":"https://api.github.com/users/lberruti/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-22T22:31:39Z","updated_at":"2015-12-22T22:31:39Z","closed_at":null,"body":"##### Issue Type:\r\n  Bug Report\r\n##### Ansible Version:\r\nv2.0.0-0.8.rc3 \r\nansible-playbook 2.0.0 (detached HEAD a2120a3d63) last updated 2015/12/22 23:24:58 (GMT +200)\r\n  lib/ansible/modules/core: (detached HEAD 5777c28f50) last updated 2015/12/22 23:24:58 (GMT +200)\r\n  lib/ansible/modules/extras: (detached HEAD 14b81df29c) last updated 2015/12/22 23:24:58 (GMT +200)\r\n  config file = /Users/nemo/Works/siransible/ansible.cfg\r\n  configured module search path = library\r\n##### Ansible Configuration:\r\nnone\r\n##### Environment:\r\n\r\nDebian 7\r\n\r\n##### Steps To Reproduce:\r\nansible-playbook args3.yml\r\n```yaml\r\n==> args3.yml <==\r\n---\r\n- hosts: localhost\r\n  connection: local\r\n  gather_facts: false\r\n  vars:\r\n    my_dirs:\r\n      - { path: /tmp/3a, state: directory, mode: 755 }\r\n      - { path: /tmp/3b, state: directory, mode: 700 }\r\n  tasks:\r\n    - file:\r\n      args: '{{item}}'\r\n      with_items: my_dirs\r\n``` \r\n\r\n##### Expected Results:\r\n```\r\n\r\nPLAY ***************************************************************************\r\n\r\nTASK [file] ********************************************************************\r\nchanged: [localhost] => (item={u'path': u'/tmp/3a', u'state': u'directory', u'mode': 755})\r\nchanged: [localhost] => (item={u'path': u'/tmp/3b', u'state': u'directory', u'mode': 700})\r\n\r\nPLAY RECAP *********************************************************************\r\nlocalhost                  : ok=1    changed=1    unreachable=0    failed=0\r\n```\r\n##### Actual Results:\r\n```\r\n\r\nPLAY ***************************************************************************\r\n\r\nTASK [file] ********************************************************************\r\n[DEPRECATION WARNING]: Using variables for task params is unsafe, especially if the variables come from an external source like facts. This\r\nfeature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.\r\nchanged: [localhost] => (item={u'path': u'/tmp/3a', u'state': u'directory', u'mode': 755})\r\nchanged: [localhost] => (item={u'path': u'/tmp/3b', u'state': u'directory', u'mode': 700})\r\n\r\nPLAY RECAP *********************************************************************\r\nlocalhost                  : ok=1    changed=1    unreachable=0    failed=0\r\n```\r\n\r\n"}}