urpmi – Urpmi manager
urpmi – Urpmi manager
Synopsis
- Manages packages with urpmi (such as for Mageia or Mandriva)
Parameters
Parameter | Choices/Defaults | Comments |
---|---|---|
force boolean |
|
Assume "yes" is the answer to any question urpmi has to ask. Corresponds to the |
name - / required added in 2.6 |
A list of package names to install, upgrade or remove.
| |
no-recommends boolean |
|
Corresponds to the
|
root - added in 2.4 |
Default: "/" |
Specifies an alternative install root, relative to which all packages will be installed. Corresponds to the
|
state - |
|
Indicates the desired package state. |
update_cache boolean |
|
Update the package database first |
Examples
- 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
Status
- This module is not guaranteed to have a backwards compatible interface. [preview]
- This module is maintained by the Ansible Community. [community]
Authors
- Philippe Makowski (@pmakowski)
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.8/modules/urpmi_module.html