packages-installed

Example:

# Install the 'htop' and 'zile' packages using the system package manager.
- packages-installed:
    packages:
    - htop
    - zile

Description

Install a list of packages, including (optionally) the package managers that are used to install them.

More information and examples to come, for now please refer to the frecklet::pkg frecklet as well as freckfrackery.install-pkgs Ansible role for more information.

Resources

Variables

Name Type Default Description

packages

list --

The list of packages to install. Required

become

boolean True

Whether to use root permissions to install the packages.

no_pkg_mgrs

boolean False

Don't try to install necessary package managers.

Examples

Example 1

Install the 'htop' and 'zile' packages using the system package manager.

Code
- packages-installed:
    packages:
    - htop
    - zile
Description

The easiest way to use this is to just use a list of strings as input. This will only work if the packages you want to install have the same name on all the relevant target platforms.

Example 2

Install the 'htop' and 'fortune' packages using the system package manager.

Code
- packages-installed:
    packages:
    - htop
    - fortune:
        pkgs:
          debian: fortune-mod
          default: fortune
Description

As the 'fortune' package is named differently on Debian platforms, we need to provide more details in our packages value.

Command-line

frecklecute packages-installed --help

Usage: frecklecute packages-installed [OPTIONS] PACKAGES

  Install a list of packages, including (optionally) the package managers
  that are used to install them.

  More information and examples to come, for now please refer to the
  frecklet::pkg frecklet as well as [freckfrackery.install-pkgs Ansible
  role](https://gitlab.com/freckfrackery/freckfrackery.install-
  pkgs/blob/master/README.md) for more information.

Options:
  --become / --no-become  Whether to use root permissions to install the
                          packages.
  --no-pkg-mgrs           Don't try to install necessary package managers.
  --help                  Show this message and exit.