community.general.slackpkg (8.5.0) — module

Package manager for Slackware >= 12.2

Authors: Kim Nørgaard (@KimNorgaard)

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

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.
- name: Install package foo
  community.general.slackpkg:
    name: foo
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Remove packages foo and bar
  community.general.slackpkg:
    name: foo,bar
    state: absent
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Make sure that it is the most updated package
  community.general.slackpkg:
    name: foo
    state: latest

Inputs

    
name:
    aliases:
    - pkg
    description:
    - name of package to install/remove
    elements: str
    required: true
    type: list

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

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