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

Package manager for OpenWrt

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

Authors: Patrick Pelletier (@skinp)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

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
    version_added: '2.0'
    version_added_collection: ansible.builtin

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

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