{"action":"opened","issue":{"url":"https://api.github.com/repos/GROG/ansible-role-sudo/issues/4","repository_url":"https://api.github.com/repos/GROG/ansible-role-sudo","labels_url":"https://api.github.com/repos/GROG/ansible-role-sudo/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/GROG/ansible-role-sudo/issues/4/comments","events_url":"https://api.github.com/repos/GROG/ansible-role-sudo/issues/4/events","html_url":"https://github.com/GROG/ansible-role-sudo/issues/4","id":149829911,"number":4,"title":"Failing to add sudo privileges to user","user":{"login":"bostone","id":395020,"avatar_url":"https://avatars.githubusercontent.com/u/395020?v=3","gravatar_id":"","url":"https://api.github.com/users/bostone","html_url":"https://github.com/bostone","followers_url":"https://api.github.com/users/bostone/followers","following_url":"https://api.github.com/users/bostone/following{/other_user}","gists_url":"https://api.github.com/users/bostone/gists{/gist_id}","starred_url":"https://api.github.com/users/bostone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bostone/subscriptions","organizations_url":"https://api.github.com/users/bostone/orgs","repos_url":"https://api.github.com/users/bostone/repos","events_url":"https://api.github.com/users/bostone/events{/privacy}","received_events_url":"https://api.github.com/users/bostone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-20T17:08:05Z","updated_at":"2016-04-20T17:08:05Z","closed_at":null,"body":"I'm trying your basic example on SLES 11. The goal is to add sudo privileges to the existing \"pdo\" user\r\n\r\n```\r\n- hosts: clients\r\n  roles:\r\n  - { role: GROG.sudo, become: yes }\r\n```\r\n\r\nhosts file\r\n\r\n```\r\n[clients]\r\nas0061\r\nas0063\r\n[db]\r\nas0064\r\n```\r\n\r\nclients.yml\r\n\r\n```\r\nsudo_list_group:\r\n  - name: pdo\r\n    sudo:\r\n      hosts: ALL\r\n      as: ALL\r\n      commands: ALL\r\n      nopasswd: yes\r\n```\r\n\r\nWhen I run it with \r\nansible-playbook ./sudo-client.yml -K\r\nI get this error\r\n\r\n```\r\nTASK [GROG.sudo : Make sure sudoers.d dir is available] ************************\r\nfatal: [as0061]: FAILED! => {\"changed\": false, \"failed\": true, \"module_stderr\": \"\", \"module_stdout\": \"\\r\\nSorry, try again.\\r\\n[sudo via ansible, key=pwstxgartlkdfysrplianfqijriswxqq] password: \\r\\nsudo: 1 incorrect password attempt\\r\\n\", \"msg\": \"MODULE FAILURE\", \"parsed\": false}\r\n```\r\n\r\nThe directory is there, BTW. Can you please let me know what am I doing wrong?\r\n\r\nThanks,\r\nBo Stone"}}