Hi all, I have a csv file as below
admin_server, id:1, /tmp admin_group, id:3, /home user_group, id:5, /root The number of lines in the file might vary. I need to append hostname to every lines in the file. i.e. I need to add a column 1 which will have the hostname. 1st server: server1,admin_server, id:1, /tmp server1,admin_group, id:3, /home server1,user_group, id:5, /root 2nd server. server2,admin_server, id:1, /tmp server2,admin_group, id:3, /home server2,user_group, id:5, /root In linux, replace module was used and it worked fine. But in windows the replace module is not working.Kindly advise. -- 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 post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c2838e4c-41cd-4264-a7ec-4a20d68b6da1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
