

Using Ansible on Ubuntu 16.04 When which python Fails
source link: https://fuzzyblog.io/blog/ansible/2017/06/20/using-ansible-on-ubuntu-16-04-when-which-python-fails.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Using Ansible on Ubuntu 16.04 When which python Fails
Jun 20, 2017
Ansible is my favorite devops tool. I've used Chef extensively and despite my Ruby background, well, I hated it. I've slutted around with TerraForm; I've played with Puppet and I've put Salt on my food and servers but time in and time out, I always come back to Ansible. I even like Ansible enough that I wrote about it recently on a Quora post.
One of the beautiful things about Ansible is that it does not require a server side agent. Ansible works via SSH purely and that means that as long as you can login to the server then you can use Ansible to provision it, update it, deploy stuff, etc.
I just deployed my first ever Ubuntu 16.04 LTS box on AWS the other day and one of my surprises was that a which python failed. Oy vey. This means that you can't use Ansible without installing Python – or so I thought. Happily a bit of googling and I discovered the ansible_python_interpreter option which lets you override the default of Python 2 and use Python 3. This gets, oddly, embedded in the inventories file:
[web]
site1 ansible_ssh_host=foo.com
[web:vars]
ansible_python_interpreter=/usr/bin/python3
The way to interpret this is all boxes in the [web] group use the /usr/bin/python3 executable.
Recommend
-
11
Installing Ansible on Ubuntu 18 on AWS May 12, 2020 Ansible is an Open Source DevOps engine for systems configuratio...
-
3
Updating to the Latest Ansible on Ubuntu Nov 15, 2019 One of the tricky bits about Ansible is that new features in the "language" always require the latest version of Ansible itself. And, while logical, this...
-
9
AWS Tech Note - Problems with Ubuntu 16.04 and Ansible Nov 29, 2016 When i started going heavy down the path of AWS, Ubuntu 14.04 was the default Ubuntu in AWS and it appeared at the top of the Operating Syste...
-
11
Ansible Tutorial 02 - Configuring a Sidekiq Upstart Job on Ubuntu 14.04 Oct 13, 2016 As I've now noted a number of times, I'm in the process of a large scale AWS migration and we've had stability problems. Unlike previ...
-
16
AWS Tutorial 11 - An Ansible Role for Installing AWS Cloud Watch Monitoring On Ubuntu Oct 1, 2016 As I've written here earlier, Ansible is a provisioning and management tool that you can use to enable better automated p...
-
9
Tutorial How To Deploy a Static HTML Website with Ansible on Ubuntu 20.04 (Nginx) Ubuntu
-
6
Ansible vs Puppet: Which is right for you? Elle Krout May 7, 2021 9 Minute Read As DevOps e...
-
16
Setup Elasticsearch Cluster on CentOS 8/7Search ComputingForGeeksElasticsearch is a powerful open-source, RE...
-
9
Install Apache Tomcat On Ubuntu 20.04/18.04Search ComputingForGeeksApache Tomcat is a free and open-source H...
-
14
Install LAMP Stack on UbuntuLAMP stack is an acronym for Linux, Apache, MySQL/MariaDB, and PHP stack. This forms a powerful stack that powers many websites and web applications on the internet. LAMP stack is a combination of the four open-sou...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK