ansible / ansible.builtin / v2.9.27 / module / urpmi Urpmi manager | "added in version" 1.3.4 of ansible.builtin" Authors: Philippe Makowski (@pmakowski) preview | supported by communityansible.builtin.urpmi (v2.9.27) — module
pip
Install with pip install ansible==2.9.27
Manages packages with I(urpmi) (such as for Mageia or Mandriva)
- 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
name: aliases: - package - pkg description: - A list of package names to install, upgrade or remove. required: true version_added: '2.6' version_added_collection: ansible.builtin 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). version_added: '2.4' version_added_collection: ansible.builtin force: default: 'yes' 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 default: present description: - Indicates the desired package state. update_cache: default: 'no' description: - Update the package database first C(urpmi.update -a). type: bool no-recommends: aliases: - no-recommends default: 'yes' description: - Corresponds to the C(--no-recommends) option for I(urpmi). type: bool