Error while trying to install vim using Python API

54 views
Skip to first unread message

Shreyas Patil

unread,
Feb 4, 2016, 4:48:15 AM2/4/16
to Ansible Project
Hi,

I get the following error while I try to install vim on the remote server using python ansible API.

fatal: [162.243.55.156]: FAILED! => {"changed": false, "cmd": "apt-get update '&&' apt-get install python-apt -y -q --force-yes", "failed": true, "msg": "/bin/sh: apt-get: command not found", "rc": 127, "stderr": "/bin/sh: apt-get: command not found\n", "stdout": "", "stdout_lines": []}

Doing similar steps on server runs fine without any issues.

Any help in this regard is appreciated.

Regards,
_Shreyas.

FangYu Liao

unread,
May 12, 2016, 1:10:44 PM5/12/16
to Ansible Project
Hi, are you solve this problem? 
Because I have the same problem like you...

 

Shreyas Patil於 2016年2月4日星期四 UTC+8下午5時48分15秒寫道:

Johannes Kastl

unread,
May 15, 2016, 3:49:39 AM5/15/16
to ansible...@googlegroups.com
On 12.05.16 09:30 FangYu Liao wrote:
> Hi, are you solve this problem?
> Because I have the same problem like you...

Why not use the ansible apt-module?

https://docs.ansible.com/ansible/apt_module.html

Johannes

signature.asc
Reply all
Reply to author
Forward
0 new messages