vars:
- MACHINE: gpack.tmt.com
- AMSPORT: 9933
- ENVIRONMENT: 'PRD'
- PROJECT: 'GTA'
- AMSPORT: '333'
- MACHINE_LOG: ' gpack '
- STOREFILE_PATH: '/home/linux/store'
- AMS_VERSION: '1.5'
I have few file in the node need to change all above variable in the
different place in the file.
Kindly share how i can do it in one shot
- name: Replace string in files
replace:
dest: "{{ item.path }}"
regexp: 'AMSPORT'
replace: '{{AMSPORT}}'
loop_control:
label: "{{ item.path }}"
with_items: "{{ files_to_change.files }}"
by above i can able to change only one variable at a time,
Please help in sharing how this can be done in all files replacing all
variables.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/31808363-d924-4111-adfe-9168276ae79dn%40googlegroups.com.