ansible / ansible.builtin / v2.4.6.0-1 / module / urpmi Urpmi manager | "added in version" 1.3.4 of ansible.builtin" Authors: Philippe Makowski (@pmakowski) preview | supported by communityansible.builtin.urpmi (v2.4.6.0-1) — module
pip
Install with pip install ansible==2.4.6.0.post1
Manages packages with I(urpmi) (such as for Mageia or Mandriva)
# install package foo - urpmi: pkg: foo state: present
# remove package foo - urpmi: pkg: foo state: absent
# description: remove packages foo and bar - urpmi: pkg: foo,bar state: absent
# description: 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
pkg: default: null description: - name of package 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). required: false version_added: '2.4' version_added_collection: ansible.builtin force: choices: - 'yes' - 'no' default: true description: - Assume "yes" is the answer to any question urpmi has to ask. Corresponds to the C(--force) option for I(urpmi). required: false state: choices: - absent - present default: present description: - Indicates the desired package state required: false update_cache: choices: - 'yes' - 'no' default: false description: - update the package database first C(urpmi.update -a). required: false no-recommends: choices: - 'yes' - 'no' default: true description: - Corresponds to the C(--no-recommends) option for I(urpmi). required: false