Ok - I made it work in rundeck import
http://symfony.com/doc/current/components/yaml/yaml_format.html
"Mappings use a colon followed by a space (: ) to mark each key/value pair:"
So I did some nasty change, removing the space in the JSON - it does not
look well, but it works:
-e '{ "versions": { "myapp": "0.1.2"} }'
*-e '{ "versions":{ "myapp":"0.1.2"} }'*
The initial question is still open, if You would feel like finding a
solution.
W dniu piątek, 18 grudnia 2015 12:47:18 UTC+1 użytkownik sirkubax napisał:
>
> Is there any way to pass an extra_vars in a form of dict, not json?
> Like this:
> -e 'versions.myapp="0.1.2"'
> not like that:
> -e '{ "versions": { "myapp": "0.1.2"} }'
>
> Reason - while importing jobs into rundeck it does complain about
>
> Error: Failed request to load jobs: Jobs Document was invalid for format
> yaml: mapping values are not allowed here
> -e '{"versions"*:* {"promo
> ^
>
> (or - can some escaping in rundeck while importing yaml files)
>
--
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/59c81ddc-9458-40f5-8721-298834326bc3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.