Skip to content

Read a JSON text into a variable in Ansible without parsing it

For one project I need to insert the content of a local file into another file on the remote system, and the first file happens to be JSON. The JSON file is in compact format (jq --compact-output) and is supposed to stay this way. When Ansible reads the content of the file, it determines that the content is JSON, and parses the content into the variable - and along the way is uncompressing the format. Not what I want.

 

Continue reading "Read a JSON text into a variable in Ansible without parsing it"
  • Twitter
  • Bookmark Read a JSON text into a variable in Ansible without parsing it at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Read a JSON text into a variable in Ansible without parsing it
  • Bloglines Read a JSON text into a variable in Ansible without parsing it
  • Technorati Read a JSON text into a variable in Ansible without parsing it
  • Fark this: Read a JSON text into a variable in Ansible without parsing it
  • Bookmark Read a JSON text into a variable in Ansible without parsing it at YahooMyWeb
  • Bookmark Read a JSON text into a variable in Ansible without parsing it at Furl.net
  • Bookmark Read a JSON text into a variable in Ansible without parsing it at reddit.com
  • Bookmark Read a JSON text into a variable in Ansible without parsing it at blinklist.com
  • Bookmark Read a JSON text into a variable in Ansible without parsing it at Spurl.net
  • Bookmark Read a JSON text into a variable in Ansible without parsing it at Simpy.com
  • Bookmark Read a JSON text into a variable in Ansible without parsing it at blogmarks
  • Bookmark Read a JSON text into a variable in Ansible without parsing it with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Identi.ca