Resolve job failures due to ansible not being able to find the master host

This is the code I'm going to run in prod tonight, hopefully it addresses the no hosts matched problem.

If it does, I'll tidy it up and we can actually review it with some rigor. Right now there are a bunch of magic numbers and unexplained behavior :wink: 

@brianhw @rocha