Ansible - Add an apt-repository on Debian and Ubuntu

1 · RvE · May 15, 2016, midnight
This is a guide that shows you how to add an apt repository to Debian and Ubuntu using Ansible. It includes both the old way, when the apt modules only worked on Ubuntu, and the new way, now that the apt-modules also support Debian, plus some other tricks....