ANSIBLE.APT_REPOSITORY(3)       ANSIBLE MODULES      ANSIBLE.APT_REPOSITORY(3)



NAME
       apt_repository - Add and remove APT repositores

DESCRIPTION
       Add or remove an APT repositories in Ubuntu and Debian.

OPTIONS
       repo   A source string for the repository.(required) (default: none)

       state  A source string state.  Choices: absent,present. (default:
              present)

       update_cache
              Run the equivalent of apt-get update if has changed.  Choices:
              yes,no. (default: yes).

NOTES
       This module works on Debian and Ubuntu and requires python-apt and
       python-pycurl packages.

       This module supports Debian Squeeze (version 6) as well as its
       successors.

       This module treats Debian and Ubuntu distributions separately. So PPA
       could be installed only on Ubuntu machines.

EXAMPLES
       # Add specified repository into sources list.
       apt_repository: repo='deb http://archive.canonical.com/ubuntu hardy partner' state=present

       # Add source repository into sources list.
       apt_repository: repo='deb-src http://archive.canonical.com/ubuntu hardy partner' state=present

       # Remove specified repository from sources list.
       apt_repository: repo='deb http://archive.canonical.com/ubuntu hardy partner' state=absent

       # On Ubuntu target: add nginx stable repository from PPA and install its signing key.
       # On Debian target: adding PPA is not available, so it will fail immediately.
       apt_repository: repo='ppa:nginx/stable'



AUTHOR
       Alexander Saltanov

SEE ALSO
       ansible(1), http://ansible.github.com/modules.html#apt-repository



1.4.5                             2014-02-12         ANSIBLE.APT_REPOSITORY(3)
