Tag Archives: 2018
How to Install Jekyll in Alpine Linux
I have been using alpine linux because it is a lightweight Linux distro and highly customizable. I was trying to install jekyll in alpine and following the instruction from jekyll website was not that helpful because the instructions are not for alpine linux. So here is how I did it. Installing ruby Official documentation asks that the system has ruby installed and should be…
Ansible Error Failed to Lock apt for Exclusive Operation
I was trying to execute a package installation task in a recently launched amazon EC2 instance via ansible. I have come across the following error Failed to lock apt for exclusive operation This bothered me a little because I have set the connection: ssh before running the ansible-playbook yet the tasks ran into this error. As…
Failed to Combine Variables, ‘AnsibleUnicode’Error!
I was trying to connect to juniper os from ansible controller and wanted to move the ansible variables from hosts files to a separate file called junos.yml in group_vars folder. Before this change, my playbooks were running fine but suddenly I got an error message. ERROR! failed to combine variables, expected dicts but got a 'dict' and a 'AnsibleUnicode' I…
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…