{"action":"closed","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1714","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1714/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1714/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1714/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/1714","id":94424709,"number":1714,"title":"modules shell: echo error","user":{"login":"adaiguoguo","id":4557740,"avatar_url":"https://avatars.githubusercontent.com/u/4557740?v=3","gravatar_id":"","url":"https://api.github.com/users/adaiguoguo","html_url":"https://github.com/adaiguoguo","followers_url":"https://api.github.com/users/adaiguoguo/followers","following_url":"https://api.github.com/users/adaiguoguo/following{/other_user}","gists_url":"https://api.github.com/users/adaiguoguo/gists{/gist_id}","starred_url":"https://api.github.com/users/adaiguoguo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adaiguoguo/subscriptions","organizations_url":"https://api.github.com/users/adaiguoguo/orgs","repos_url":"https://api.github.com/users/adaiguoguo/repos","events_url":"https://api.github.com/users/adaiguoguo/events{/privacy}","received_events_url":"https://api.github.com/users/adaiguoguo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-11T01:47:34Z","updated_at":"2015-07-11T01:56:41Z","closed_at":"2015-07-11T01:56:41Z","body":"ERROR: Syntax Error while loading YAML script, /root/ansible-power/roles/adduser/tasks/main.yml\r\nNote: The error may actually appear before this position: line 11, column 43\r\n\r\n- name: add sudoers\r\n  shell: echo '{{user}} ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers\r\n                                          ^\r\nWe could be wrong, but this one looks like it might be an issue with\r\nmissing quotes.  Always quote template expression brackets when they\r\nstart a value. For instance:\r\n\r\n    with_items:\r\n      - {{ foo }}\r\n\r\nShould be written as:\r\n\r\n    with_items:\r\n      - \"{{ foo }}\""}}