ansible.builtin.slackpkg (v2.9.27) — module

Package manager for Slackware >= 12.2

| "added in version" 2.0 of ansible.builtin"

Authors: Kim Nørgaard (@KimNorgaard)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

Description

Manage binary packages for Slackware using 'slackpkg' which is available in versions after 12.2.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Install package foo
- slackpkg:
    name: foo
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Remove packages foo and bar
- slackpkg:
    name: foo,bar
    state: absent
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Make sure that it is the most updated package
- slackpkg:
    name: foo
    state: latest

Inputs

    
name:
    description:
    - name of package to install/remove
    required: true

state:
    choices:
    - present
    - absent
    - latest
    default: present
    description:
    - state of the package, you can use "installed" as an alias for C(present) and removed
      as one for C(absent).
    required: false

update_cache:
    default: false
    description:
    - update the package database first
    required: false
    type: bool