- Docs »
- urpmi - Urpmi manager
-
You are reading an unmaintained version of the Ansible documentation. Unmaintained Ansible versions can contain unfixed security vulnerabilities (CVE). Please upgrade to a maintained version. See the latest Ansible documentation.
urpmi - Urpmi manager
- Manages packages with urpmi (such as for Mageia or Mandriva)
Parameter |
Choices/Defaults |
Comments |
force
bool |
|
Assume "yes" is the answer to any question urpmi has to ask. Corresponds to the --force option for urpmi.
|
name
required
(added in 2.6) |
|
A list of package names to install, upgrade or remove.
aliases: package, pkg
|
no-recommends
bool |
|
Corresponds to the --no-recommends option for urpmi.
aliases: no-recommends
|
root
(added in 2.4) |
Default:
"/"
|
Specifies an alternative install root, relative to which all packages will be installed. Corresponds to the --root option for urpmi.
aliases: installroot
|
state
|
Choices:
- absent
present ←
|
Indicates the desired package state.
|
update_cache
bool |
|
Update the package database first urpmi.update -a .
|
- name: Install package foo
urpmi:
pkg: foo
state: present
- name: Remove package foo
urpmi:
pkg: foo
state: absent
- name: Remove packages foo and bar
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)
- urpmi:
name: bar
state: present
update_cache: yes
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
This module is flagged as community which means that it is maintained by the Ansible Community. See Module Maintenance & Support for more info.
For a list of other modules that are also maintained by the Ansible Community, see here.
- Philippe Makowski (@pmakowski)
Hint
If you notice any issues in this documentation you can edit this document to improve it.