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
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| name | list | yes | Package name, or list of names, optionally with a version specifier | |
| state | string | yes | Whether to install (present), upgrade (latest), or remove (absent) a package | |
| use | string | auto | The 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