community.general.opkg (1.3.14) — module

Package manager for OpenWrt

Authors: Patrick Pelletier (@skinp)

Install collection

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


Add to requirements.yml

  collections:
    - name: community.general
      version: 1.3.14

Description

Manages OpenWrt packages


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Install foo
  community.general.opkg:
    name: foo
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Update cache and install foo
  community.general.opkg:
    name: foo
    state: present
    update_cache: yes
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Remove foo
  community.general.opkg:
    name: foo
    state: absent
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Remove foo and bar
  community.general.opkg:
    name: foo,bar
    state: absent
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Install foo using overwrite option forcibly
  community.general.opkg:
    name: foo
    state: present
    force: overwrite

Inputs

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

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

state:
    choices:
    - present
    - absent
    - installed
    - removed
    default: present
    description:
    - state of the package
    type: str

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