Make playbook idempotent, and fix a hostname problem.