Skip to content
Snippets Groups Projects
Commit 5fc7ad68 authored by Chris Coley's avatar Chris Coley
Browse files

Update the bootstrap tasks to fail if Python is not available

Initially, this role would check if Python was available in the default location
of '/usr/bin/python', and would install Python 2 if it wasn't. I didn't like the
idea of installing Python 2 so I updated the role to look for a usable Python
interpreter in other standard locations, including Python 3's default location
of '/usr/bin/python3'. Then it would tell the user to set
'ansible_python_interpreter' to one of the interpreters it found. I liked this
because it gave the user the choice of how to resolve the issue. However, this
role was running all the Python finding/checking tasks for every host and that
struck me as inefficient, so I changed it.

Now, the role checks if the host is pingable. If it is not, then it runs tasks
to determine why that specific host is not pingable. It then relays that
information to the user by failing out with the fail module and a descriptive
message. Hosts that are pingable do not run these tasks.
parent 51ade85c
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment