Can ansible work without Python2.7 on target (remote) machine? We cannot install python in remote machine as there might not be internet connection available.

152 views
Skip to first unread message

Sourav Chatterjee

unread,
Sep 30, 2016, 12:05:05 PM9/30/16
to Ansible Project
Hi,

I would like to confirm if ansible can be used without python2.7 on target machine, if there is any way ..? We will not be able to able to install python on target machine using ansible raw module as there may not be internet access. Any other alternatives?

We want to run just shell command in background in the remote machine (using nohup or &). I could not run it using "raw"module. Any other way to achieve this without python2.7 on target machine?

Thanks

Kai Stian Olstad

unread,
Sep 30, 2016, 12:52:27 PM9/30/16
to ansible...@googlegroups.com
On 30. sep. 2016 10:49, Sourav Chatterjee wrote:
> I would like to confirm if ansible can be used without python2.7 on target
> machine, if there is any way ..? We will not be able to able to install
> python on target machine using ansible raw module as there may not be
> internet access. Any other alternatives?

Copy over the OS packages you need to install Python, if that is not an
alternative, you are left with the raw module.


> We want to run just shell command in background in the remote machine
> (using nohup or &). I could not run it using "raw"module. Any other way to
> achieve this without python2.7 on target machine?

nohup and & won't work with the shell module either.
Create init script and start them with the raw module.

--
Kai Stian Olstad

Kai Stian Olstad

unread,
Sep 30, 2016, 1:32:18 PM9/30/16
to ansible...@googlegroups.com
On 30. sep. 2016 18:52, Kai Stian Olstad wrote:
> On 30. sep. 2016 10:49, Sourav Chatterjee wrote:
>> We want to run just shell command in background in the remote machine
>> (using nohup or &). I could not run it using "raw"module. Any other
>> way to
>> achieve this without python2.7 on target machine?
>
> nohup and & won't work with the shell module either.

I have to withdraw my statement, it was based on some people having
problem getting nohup and & to work with shell.

I did a test my self and nohup with & work with the shell module.

--
Kai Stian Olstad


Reply all
Reply to author
Forward
0 new messages