Based on Ramon's answer, I ran into an error. The problem where I tried to write places in JSON, I fixed it by changing the task in the playbook to look like this:
- copy: content: "{{ your_json_feed }}" dest: "/path/to/destination/file"
At the moment, I'm not sure why this was necessary. My best guess is that it has something to do with replacing variables in Ansible, and the resulting file is parsed.
Tobias Kremer Jan 15 '16 at 8:09 2016-01-15 08:09
source share