package

Collection: builtin

Full Name: parallax.builtin.package

Aliases: ansible.builtin.package, package

Synopsis

Install or remove packages using whichever package manager the target uses

Parameters

NameTypeRequiredDefaultDescription
namelistyesPackage name, or list of names, optionally with a version specifier
statestringyesWhether to install (present), upgrade (latest), or remove (absent) a package
usestringautoThe package manager to use, or auto to detect one

Example

- name: Install a package without caring which distro this is
  package:
    name: git
    state: present