{"action":"created","issue":{"url":"https://api.github.com/repos/jedelman8/nxos-ansible/issues/87","repository_url":"https://api.github.com/repos/jedelman8/nxos-ansible","labels_url":"https://api.github.com/repos/jedelman8/nxos-ansible/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/jedelman8/nxos-ansible/issues/87/comments","events_url":"https://api.github.com/repos/jedelman8/nxos-ansible/issues/87/events","html_url":"https://github.com/jedelman8/nxos-ansible/issues/87","id":152676983,"number":87,"title":"Looping with list of IP's not working ","user":{"login":"geepees2015","id":18043920,"avatar_url":"https://avatars.githubusercontent.com/u/18043920?v=3","gravatar_id":"","url":"https://api.github.com/users/geepees2015","html_url":"https://github.com/geepees2015","followers_url":"https://api.github.com/users/geepees2015/followers","following_url":"https://api.github.com/users/geepees2015/following{/other_user}","gists_url":"https://api.github.com/users/geepees2015/gists{/gist_id}","starred_url":"https://api.github.com/users/geepees2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geepees2015/subscriptions","organizations_url":"https://api.github.com/users/geepees2015/orgs","repos_url":"https://api.github.com/users/geepees2015/repos","events_url":"https://api.github.com/users/geepees2015/events{/privacy}","received_events_url":"https://api.github.com/users/geepees2015/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-03T00:41:59Z","updated_at":"2016-05-03T20:13:29Z","closed_at":null,"body":"Hi\r\nI was trying to put 2 ntp server's with the item list as follows:\r\n\r\n    - nxos_ntp: host={{ inventory_hostname }} server={{ item }} source_int=loopback0 username=admin password=\"xxxxx\" protocol=https state=present\r\n       with_items:\r\n        - \"10.110.80.1\"\r\n        - \"10.110.90.5\"\r\n\r\nI am seeing the following error when I run the above which is:\r\n\r\nERROR! Syntax Error while loading YAML.\r\n\r\n\r\nThe error appears to have been in '/usr/share/ansible/samples/test3snmp-interface.yml': line 29, column 18, but may\r\nbe elsewhere in the file depending on the exact syntax problem.\r\n\r\nThe offending line appears to be:\r\n\r\n    - nxos_ntp: host={{ inventory_hostname }} server={{ item }} source_int=loopback0 username=admin password=\"xxxxx\" protocol=https state=present\r\n       with_items:\r\n                 ^ here\r\n\r\nAny reason on why it breaks?\r\n\r\nThanks ?"},"comment":{"url":"https://api.github.com/repos/jedelman8/nxos-ansible/issues/comments/216650937","html_url":"https://github.com/jedelman8/nxos-ansible/issues/87#issuecomment-216650937","issue_url":"https://api.github.com/repos/jedelman8/nxos-ansible/issues/87","id":216650937,"user":{"login":"geepees2015","id":18043920,"avatar_url":"https://avatars.githubusercontent.com/u/18043920?v=3","gravatar_id":"","url":"https://api.github.com/users/geepees2015","html_url":"https://github.com/geepees2015","followers_url":"https://api.github.com/users/geepees2015/followers","following_url":"https://api.github.com/users/geepees2015/following{/other_user}","gists_url":"https://api.github.com/users/geepees2015/gists{/gist_id}","starred_url":"https://api.github.com/users/geepees2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geepees2015/subscriptions","organizations_url":"https://api.github.com/users/geepees2015/orgs","repos_url":"https://api.github.com/users/geepees2015/repos","events_url":"https://api.github.com/users/geepees2015/events{/privacy}","received_events_url":"https://api.github.com/users/geepees2015/received_events","type":"User","site_admin":false},"created_at":"2016-05-03T20:13:29Z","updated_at":"2016-05-03T20:13:29Z","body":"It still does not work and gives error and the yaml looks as follows:\r\n\r\n\r\n---\r\n\r\n- name: interface testing\r\n  hosts: leaf\r\n  connection: local\r\n  gather_facts: no\r\n\r\n\r\n  tasks:\r\n    - nxos_ntp: server={{ item }} host={{ inventory_hostname }} source_int=loopback0 username=admin password=“xxxx” protocol=https state=present\r\n      with_items:\r\n        - 10.110.80.1\r\n        - 10.110.90.5\r\n\r\nThanks !"}}