community / community.general / 3.8.10 / module / urpmi Urpmi manager Authors: Philippe Makowski (@pmakowski)community.general.urpmi (3.8.10) — module
Install with ansible-galaxy collection install community.general:==3.8.10
collections: - name: community.general version: 3.8.10
Manages packages with I(urpmi) (such as for Mageia or Mandriva)
- name: Install package foo community.general.urpmi: pkg: foo state: present
- name: Remove package foo community.general.urpmi: pkg: foo state: absent
- name: Remove packages foo and bar community.general.urpmi: pkg: foo,bar state: absent
- name: Update the package database (urpmi.update -a -q) and install bar (bar will be the updated if a newer version exists)
- community.general.urpmi: name: bar state: present update_cache: yes
name: aliases: - package - pkg description: - A list of package names to install, upgrade or remove. elements: str required: true type: list root: aliases: - installroot description: - Specifies an alternative install root, relative to which all packages will be installed. Corresponds to the C(--root) option for I(urpmi). type: str force: default: true 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 - installed - removed default: present description: - Indicates the desired package state. type: str update_cache: aliases: - update-cache default: false description: - Update the package database first C(urpmi.update -a). - Alias C(update-cache) has been deprecated and will be removed in community.general 5.0.0. type: bool no_recommends: aliases: - no-recommends default: true description: - Corresponds to the C(--no-recommends) option for I(urpmi). - Alias C(no-recommends) has been deprecated and will be removed in community.general 5.0.0. type: bool