My Ansible playbook looks like below:
- hosts: all
gather_facts: false
remote_user: ansadm
vars:
dashboard_json: {This is some sample text in JSON with numerous data in curly braces {{Text}} {{MoreText}} {{MoreText}} and many more}
The text that I have in the dashboard_json variable is in JSON format and has multiple text defined within {{ }} that I want to ignore and take it as a text and not a variable. Also, the JSON text is more that 1700 lines in size and I don't want any manual modifications to the text to add the escape sequence.
Is there an easier way out to just take the whole variable data as is?
Any idea, whould be helpful.