zypper_repository - Add and remove Zypper repositories

Author:Matthias Vogelgesang

Synopsis

New in version 1.4.

Add or remove Zypper repositories on SUSE and openSUSE

Options

parameter required default choices comments
description no none
    A description of the repository
    disable_gpg_check no no
    • yes
    • no
    Whether to disable GPG signature checking of all packages. Has an effect only if state is present.
    name no none
      A name for the repository. Not required when adding repofiles.
      repo no none
        URI of the repository or .repo file. Required when state=present.
        state no present
        • absent
        • present
        A source string state.

        Note

        Requires zypper

        Examples


        # Add NVIDIA repository for graphics drivers
        - zypper_repository: name=nvidia-repo repo='ftp://download.nvidia.com/opensuse/12.2' state=present
        
        # Remove NVIDIA repository
        - zypper_repository: name=nvidia-repo repo='ftp://download.nvidia.com/opensuse/12.2' state=absent
        
        # Add python development repository
        - zypper_repository: repo=http://download.opensuse.org/repositories/devel:/languages:/python/SLE_11_SP3/devel:languages:python.repo
        

        Table Of Contents

        Previous topic

        zypper - Manage packages on SuSE and openSuSE

        Next topic

        Source Control Modules