Ansible trigering Python Code to Merge CSV's into Excel

73 views
Skip to first unread message

Ume

unread,
Nov 28, 2022, 6:46:51 AM11/28/22
to Ansible Project
is it possible to run python code (from ansible) to combine two csv files (generated by ansible) in to excel sheet and make ansible to send that excel file via email

Dick Visser

unread,
Nov 28, 2022, 6:52:27 AM11/28/22
to ansible...@googlegroups.com
Yes. Or at least I don't see why this would NOT be possible.

On Mon, 28 Nov 2022 at 12:47, Ume <rame...@gmail.com> wrote:
is it possible to run python code (from ansible) to combine two csv files (generated by ansible) in to excel sheet and make ansible to send that excel file via email

--
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/c660ee3d-3fd1-433e-86b5-311f4990656cn%40googlegroups.com.

Rowe, Walter P. (Fed)

unread,
Nov 28, 2022, 6:54:29 AM11/28/22
to ansible...@googlegroups.com
Yes. Ansible has a shell module and a command module. Both can be used to run any command including a python script. Read about them both in ansible documentation to make sure you understand their differences.

Walter
--
Walter Rowe, Division Chief
Infrastructure Services, OISM
Mobile: 202.355.4123

On Nov 28, 2022, at 6:46 AM, Ume <rame...@gmail.com> wrote:

is it possible to run python code (from ansible) to combine two csv files (generated by ansible) in to excel sheet and make ansible to send that excel file via email

Wei-Yen Tan

unread,
Nov 28, 2022, 9:10:12 AM11/28/22
to ansible...@googlegroups.com
And if you are really game one can develop their own modules using Python. They have their own helper functions to do this to make it feel and look like a native task 

Sent from Outlook for iOS

From: 'Rowe, Walter P. (Fed)' via Ansible Project <ansible...@googlegroups.com>
Sent: Tuesday, November 29, 2022 12:54:13 AM
To: ansible...@googlegroups.com <ansible...@googlegroups.com>
Subject: Re: [ansible-project] Ansible trigering Python Code to Merge CSV's into Excel
 
Reply all
Reply to author
Forward
0 new messages