ansible/ansible — pull request #1907 by sfromm (2013-01-24 06:21:59+00:00)
Title: Update apt_repository to query if repo is already configured

This adds two dependencies to the apt_repository module: apt and
apt_pkg. These come from the package python-apt. This is used to parse
the host's sources.list and examine whether the repo is already
configured. This then eliminates the unnecessary
'add-apt-repository --remove' from running.

See issue #1888.