community.general.urpmi (0.2.1) — module

Urpmi manager

Authors: Philippe Makowski (@pmakowski)

Install collection

Install with ansible-galaxy collection install community.general:==0.2.1


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.2.1

Description

Manages packages with I(urpmi) (such as for Mageia or Mandriva)

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Install package foo
  urpmi:
    pkg: foo
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Remove package foo
  urpmi:
    pkg: foo
    state: absent
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Remove packages foo and bar
  urpmi:
    pkg: foo,bar
    state: absent
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Update the package database (urpmi.update -a -q) and install bar (bar will be the updated if a newer version exists)
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- urpmi:
    name: bar
    state: present
    update_cache: yes

Inputs

    
name:
    aliases:
    - package
    - pkg
    description:
    - A list of package names to install, upgrade or remove.
    required: true

root:
    aliases:
    - installroot
    default: /
    description:
    - Specifies an alternative install root, relative to which all packages will be installed.
      Corresponds to the C(--root) option for I(urpmi).

force:
    default: 'yes'
    description:
    - Assume "yes" is the answer to any question urpmi has to ask. Corresponds to the
      C(--force) option for I(urpmi).
    type: bool

state:
    choices:
    - absent
    - present
    default: present
    description:
    - Indicates the desired package state.

update_cache:
    default: 'no'
    description:
    - Update the package database first C(urpmi.update -a).
    type: bool

no-recommends:
    aliases:
    - no-recommends
    default: 'yes'
    description:
    - Corresponds to the C(--no-recommends) option for I(urpmi).
    type: bool