{"action":"opened","issue":{"url":"https://api.github.com/repos/jtyr/ansible-sudo/issues/1","repository_url":"https://api.github.com/repos/jtyr/ansible-sudo","labels_url":"https://api.github.com/repos/jtyr/ansible-sudo/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/jtyr/ansible-sudo/issues/1/comments","events_url":"https://api.github.com/repos/jtyr/ansible-sudo/issues/1/events","html_url":"https://github.com/jtyr/ansible-sudo/issues/1","id":180375226,"number":1,"title":"ansible 2.x dictionaries","user":{"login":"jceloria","id":1354592,"avatar_url":"https://avatars.githubusercontent.com/u/1354592?v=3","gravatar_id":"","url":"https://api.github.com/users/jceloria","html_url":"https://github.com/jceloria","followers_url":"https://api.github.com/users/jceloria/followers","following_url":"https://api.github.com/users/jceloria/following{/other_user}","gists_url":"https://api.github.com/users/jceloria/gists{/gist_id}","starred_url":"https://api.github.com/users/jceloria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jceloria/subscriptions","organizations_url":"https://api.github.com/users/jceloria/orgs","repos_url":"https://api.github.com/users/jceloria/repos","events_url":"https://api.github.com/users/jceloria/events{/privacy}","received_events_url":"https://api.github.com/users/jceloria/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-30T18:46:40Z","updated_at":"2016-09-30T18:46:40Z","closed_at":null,"body":"Currently using ansible 2.1.1.0\r\n```\r\n- hosts: all\r\n  gather_facts: true\r\n  vars:\r\n    sudo_sudoers_deploy: no\r\n    sudo_sudoersd:\r\n      # This is the filename\r\n      - my_file:\r\n          # This is the users definition like above\r\n          users:\r\n            - ansible:\r\n                host: ALL\r\n                runas: ALL\r\n                tag: NOPASSWD\r\n                cmd: ALL\r\n  roles:\r\n    - sudo\r\n```\r\n\r\nResults in the following:\r\n```\r\nTASK [sudo : Create /etc/sudoers file] *****************************************\r\nskipping: [<REDACTED>] => {\"changed\": false, \"skip_reason\": \"Conditional check failed\", \"skipped\": true}\r\n\r\nTASK [sudo : Create /etc/sudoers.d files] **************************************\r\nfatal: [<REDACTED>]: FAILED! => {\"failed\": true, \"msg\": \"with_dict expects a dict\"}\r\n```"}}
{"actor":{"display_login":"jceloria"}}