dpla/automation — pull request #9 by markbreedlove (2014-09-26 18:29:44+00:00)
Title: Change hostname variables

Use inventory_hostname in various places where hostname or
ansible_hostname were used. inventory_hostname is automatically
assigned by ansible. hostname was a variable I added before I
realized the availability of inventory_hostname. ansible_hostname
is not appropriate because on the first pass through configuring a
new instance, it will not have been set yet to the desired hostname
for certain tasks (being the server's original hostname before we
set it).

This is a change that would help to have merged to `develop` before I perform more work for the staging environment.

I've run all of the plays in the `development` and `contentqa` environments and they look fine. Could someone else do an ansible-playbook run?