{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/2769","labels_url":"https://api.github.com/repos/ansible/ansible/issues/2769/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/2769/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/2769/events","html_url":"https://github.com/ansible/ansible/issues/2769","id":13576161,"number":2769,"title":"YAML syntax error when string contains a colon + space","user":{"login":"gw0","id":803603,"avatar_url":"https://avatars.githubusercontent.com/u/803603?v=3","gravatar_id":"","url":"https://api.github.com/users/gw0","html_url":"https://github.com/gw0","followers_url":"https://api.github.com/users/gw0/followers","following_url":"https://api.github.com/users/gw0/following{/other_user}","gists_url":"https://api.github.com/users/gw0/gists{/gist_id}","starred_url":"https://api.github.com/users/gw0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gw0/subscriptions","organizations_url":"https://api.github.com/users/gw0/orgs","repos_url":"https://api.github.com/users/gw0/repos","events_url":"https://api.github.com/users/gw0/events{/privacy}","received_events_url":"https://api.github.com/users/gw0/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2013-04-24T08:38:49Z","updated_at":"2015-03-02T14:49:34Z","closed_at":"2013-04-24T11:35:48Z","body":"There is a YAML syntax error if you try to enter a colon followed by a space (`\": \"`) inside any string (doesn't seem to matter what if before or after).\r\n\r\n```\r\n$ cat _test.yml\r\n---\r\n- hosts: all\r\n  tasks:\r\n    - debug: msg=\"foo: bar\"\r\n```\r\n\r\nIn Ansible 1.2 development branch:\r\n\r\n```\r\n$ ansible-playbook -v _test.yml \r\nERROR: Syntax Error while loading YAML script, _test.yml\r\nNote: The error may actually appear before this position: line 4, column 22\r\n\r\n  tasks:\r\n    - debug: msg=\"foo: bar\"\r\n                     ^\r\n```\r\n\r\nA use case where this will cause trouble is when using `lineinfile` module."},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/76724126","html_url":"https://github.com/ansible/ansible/issues/2769#issuecomment-76724126","issue_url":"https://api.github.com/repos/ansible/ansible/issues/2769","id":76724126,"user":{"login":"srvg","id":382239,"avatar_url":"https://avatars.githubusercontent.com/u/382239?v=3","gravatar_id":"","url":"https://api.github.com/users/srvg","html_url":"https://github.com/srvg","followers_url":"https://api.github.com/users/srvg/followers","following_url":"https://api.github.com/users/srvg/following{/other_user}","gists_url":"https://api.github.com/users/srvg/gists{/gist_id}","starred_url":"https://api.github.com/users/srvg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srvg/subscriptions","organizations_url":"https://api.github.com/users/srvg/orgs","repos_url":"https://api.github.com/users/srvg/repos","events_url":"https://api.github.com/users/srvg/events{/privacy}","received_events_url":"https://api.github.com/users/srvg/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T14:49:34Z","updated_at":"2015-03-02T14:49:34Z","body":"http://docs.ansible.com/YAMLSyntax.html#gotchas"}}