Ansible Error – Shared Connection Closed
Today, ansible started showing the following ERROR while pinging a host or multiple hosts. The Error looks something like following 121.141.161.181 | FAILED! => { "changed": false, "module_stderr": "Shared connection to 121.141.161.181 closed.\r\n", "module_stdout": "/bin/sh: 1: /usr/bin/python: not found\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 127 } This error is shown because the…
Ansible Unable to Locate AWS Credentials
I have been trying to connect to AWS ec2 instance with ansible and as per the instructions from the ansible documentation I have placed my credentials in ~/.aws/credentials but somehow botocore was not picking it up and I have spent at least 10 hours debugging this. Trying all the possible combinations in all the possible places where ansible…
Ansible and Dynamic Amazon EC2 Inventory Management
To create amazon ec2 instances dynamically and to manage them I have followed the following instructions-I have chosen Ubuntu 16.04 as my ansible controller machine and will be using an ubuntu AMI. I have also generated some credentials from amazon’s IAM. Add the credentials into environment variables. export AWS_ACCESS_KEY_ID='YOUR_AWS_API_KEY' export AWS_SECRET_ACCESS_KEY='YOUR_AWS_API_SECRET_KEY' To get started with dynamic EC2 inventory management, we…
Free != Open Source
As I was talking with a couple of my friends the other day, it came to my attention that most of them don’t know the difference between free software and open-source software, although all of them are computer/software engineers with one or more master’s degree. Isn’t that pathetic? At this point, two things come to…
How to Install NGINX in Ubuntu
nginx [engine x] is an HTTP and reverse proxy server, a mail proxy server, and a generic TCP/UDP proxy server. Install NGINX Installing nginx is pretty easy and starlight forward. To install nginx use the following command(s) sudo apt-get update sudo apt-get -y install nginx These should install and start the web-server service. To check the current status of nginx,…