updated to reflect current ansible playbook syntax and made a bit more generic