0

I often used jq to lookup a value in json. How to do this in yaml? I do not want to use something like sed as too much characters have to be removed then.

0

One could use go-yq if one wants to lookup a value by applying jq style, i.e. if firefox_version then one could look it up by adding a dot:

docker run -v ${PWD}:/ansible-firefox utrecht/go-yq:2.1.0 \
       .firefox_version /ansible-firefox/defaults/main.yml

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.