beehexa integrationsidebar
beehexa logo

We Build HexaSync Integration Platform for Connecting ERP, POS, CRM, Accounting, and eCommerce Applications to Automate Business Processes

ansible ubuntu

How to run Ansible on Ubuntu 16.04?

If you visit my blog frequently, I always use Vagrant with Ansible for setting up my local development or provisioning a staging server.

This command

ansible-playbook -i inventories/staging playbook.yml

always working well for me but today I met this error

FAILED! => {"changed": false, "failed": true, "module_stderr": "", "module_stdout": "\r\n/bin/sh: 1: /usr/bin/python: not found\r\n", "msg": "MODULE FAILURE", "parsed": false}

After spending time checking, Python 2.7 was not yet installed on Ubuntu 16.04 as it should be so Ansible could not run well.

How to run Ansible on Ubuntu 16.04?

It is quite easy to fix by just installing Python 2.7 with this command:

sudo apt-get install python-minimal
#checking ansible version
python --version
Python 2.7.12

After that, I could provision the LAMP stack successfully to deploy my new Magento website on an AWS Ubuntu 16.04 EC2 instance.

I hope this post can help you quickly resolve your issue.

Table of Contents

Ready to integrate and automate at scale ?

Learn how HexaSync lets you build enterprise-grade integrations and automations without having to code.

Receive Exclusive Productivity Tips Directly in Your Inbox

We’ll email you 1-3 times per week—and never share your information.

Get started for free

You can’t add more hours to the day. Beehexa is the next best thing.