The rule in YAML is if you have a colon in the line, you must quote the whole line. In this case, the uri stuff probably needs quotes around the whole beast.
You might find it easy to store the "body" in a "vars:" to make it a little easier to read. On Tue, May 27, 2014 at 5:51 PM, Guy Matz <[email protected]> wrote: > Sorry to be a bother . . . can anyone say how I should be formatting the >> data ion my body here: > > - name: artifactory | TEST - create repo > uri: url={{ baseurl }}/api/repositories/__test__ > method=PUT user=user password=password > body='{"rclass": "local"}' > force_basic_auth=yes status_code=200 > HEADER_Content-Type="application/json" > > yaml doesn't like the colon (:) in the body . . . the body is for JSON, > right? > > Thanks! > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/aefc1c30-dd58-4fa0-ba6f-662acf045e36%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/aefc1c30-dd58-4fa0-ba6f-662acf045e36%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgwKS08my9ki6CD5cHDyo8CES_%2BL0TEPThj61Pm85jnHdQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
