community.general.opkg (0.1.1) — module

Package manager for OpenWrt

Authors: Patrick Pelletier (@skinp)

preview | supported by community

Install collection

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


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.1.1

Description

Manages OpenWrt packages


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- opkg:
    name: foo
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- opkg:
    name: foo
    state: present
    update_cache: yes
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- opkg:
    name: foo
    state: absent
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- opkg:
    name: foo,bar
    state: absent
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- opkg:
    name: foo
    state: present
    force: overwrite

Inputs

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

force:
    choices:
    - ''
    - depends
    - maintainer
    - reinstall
    - overwrite
    - downgrade
    - space
    - postinstall
    - remove
    - checksum
    - removal-of-dependent-packages
    default: absent
    description:
    - opkg --force parameter used

state:
    choices:
    - present
    - absent
    default: present
    description:
    - state of the package

update_cache:
    default: 'no'
    description:
    - update the package db first
    type: bool