Minor doc error: apt_repository

Not worth raising as a ticket, but I thought I’d report the following documentation problem at http://ansible.cc/docs/modules.html#apt-repository

The example shows:

apt_repository: repo=ppa://nginx/stable

However I think the // should be removed. If I use

  • action: apt_repository repo=ppa://semiosis/ubuntu-glusterfs-3.3

then it creates a silly file “/etc/apt/sources.list.d/–precise.list”

But the following works:

  • action: apt_repository repo=ppa:semiosis/ubuntu-glusterfs-3.3

It create “/etc/apt/sources.list.d/semiosis-ubuntu-glusterfs-3_3-precise.list” containing

deb http://ppa.launchpad.net/semiosis/ubuntu-glusterfs-3.3/ubuntu precise main
deb-src http://ppa.launchpad.net/semiosis/ubuntu-glusterfs-3.3/ubuntu precise main

This all tested with ansible-0.7

Regards,

Brian.

I proposed a docfix here: https://github.com/ansible/ansible/pull/1755

Take care,

Lorin