Write to Excel file in the control machine

123 views
Skip to first unread message

Prady A

unread,
May 4, 2023, 12:31:55 AM5/4/23
to ansible...@googlegroups.com
Hello guys,

Could you please suggest what would be the best approach to create an excel file in control node of the provided hostnames in the ansible playbook command.

Thanks
Pradyumna 

Ravi yadav

unread,
May 4, 2023, 4:09:09 AM5/4/23
to ansible...@googlegroups.com, pradyu...@gmail.com
Hello Pradyumna, 
I have below playbook where i generate files in csv format for vmware inventory. please check if this kind or report you are looking, you can customise this according to your requirements.
playbook on this github link.

Regards
Ravi
--
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 ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAEuB3Aodpzm08aqDt%3DHtwcU5bt5QiaH3%2B7kWXA%2Bkefd8tF0%2B-Q%40mail.gmail.com.

Prady A

unread,
May 4, 2023, 9:13:15 AM5/4/23
to Ravi yadav, ansible...@googlegroups.com
Hi Ravi,

Thank you for your kind reply.
I am running the ansible playbook. anisible_hostname var contains the hostname which needs to be updated in the excel sheet. Kindly find the attached excel file in JPEG format.
The hostname are in the excel B,C,L,S column. Hostname are 1ld619 and 1ld620. 
Please suggest.

Regards
Prady


On Thu, May 4, 2023 at 7:47 PM Ravi yadav <ravi.ya...@gmail.com> wrote:
Hello Pradyumna, 

need to check that excel file format where you want this hostname value to be updated, also want to know from where you want to collect that host names, AD or Vcenter.
will check then so email script.

Ravi.

On Thu, May 4, 2023 at 3:39 PM Prady A <pradyu...@gmail.com> wrote:
Hi Ravi,

Thank you for your insight.
Actually I need to update the hostnames in an existing excel file in a particular cells And send that file in mail for approval while deploying the server.

Do you suggest use any ansible excel modules 
Or call a python file and manipulate rhe 

Regards 
Pradyumna
Excel Image.jpeg
Reply all
Reply to author
Forward
0 new messages