My colleague Warren, who I had the pleasure to work with at Sun and again with ForgeRock, has been playing with Ansible and has produced 2 roles to install OpenDJ and to configure replication.
Check Warren’s blog post for the details, or go directly to the Ansible Galaxy.