community.general.urpmi – Urpmi manager
Note
This plugin is part of the community.general collection (version 3.8.3).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.urpmi
.
Parameters
Parameter |
Comments |
---|---|
Assume “yes” is the answer to any question urpmi has to ask. Corresponds to the Choices:
|
|
A list of package names to install, upgrade or remove. |
|
Corresponds to the Alias Choices:
|
|
Specifies an alternative install root, relative to which all packages will be installed. Corresponds to the |
|
Indicates the desired package state. Choices:
|
|
Update the package database first Alias Choices:
|
Examples
- 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
Authors
Philippe Makowski (@pmakowski)