Documentation

zypper_repository - Add and remove Zypper repositories

New in version 1.4.

Synopsis

Add or remove Zypper repositories on SUSE and openSUSE

Requirements (on host that executes module)

  • zypper

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.
      refresh
      no yes
      • yes
      • no
      Enable autorefresh of the repository.
      repo
      no none
        URI of the repository or .repo file. Required when state=present.
        state
        no present
        • absent
        • present
        A source string state.

        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
        

        This is an Extras Module

        For more information on what this means please read Extras Modules

        For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Helping Testing PRs and Developing Modules.