For example i have variable A and I want to write a file B with these value from variable A. The value from var A will be vary from the survey input.
- hosts: myhost
vars:
A: "{{ input }}"
The content of the file B that I needed: A="{{ input }}"
I need to replace the input for the file from the input value in the variable. The input can be anything inserted in the ansible survey.
Is there a way to write the input values from var A to the file B?