Hi all,
I would like add a line in particular line, I have written a task as below;
---
- name: adding script line with package name
win_lineinfile:
dest: D:/Software/configurations/uCMDBProbeResponseFile.txt
regexp: '^USER_INSTALL_DIR= '
line: 'USER_INSTALL_DIR= F:\\UCMDB\\UCMDBServer'
state: present
But it will add the line in end of the file.
" regexp" is not working it's not able to find the line.
Could you please help me how to fix this issue.
Thanks& Regards,
Venkat
--
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/CAFMhZ_LD13JKfKAS8GrU%2B7MCAd8hXPubejmRh8WemT2fRuFg6w%40mail.gmail.com.