Error while trying to install vim using Python API

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.

Hi, are you solve this problem?
Because I have the same problem like you…

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

Why not use the ansible apt-module?

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

Johannes