Ansible module to manage packages with "xbps" package manager of Voidlinux

Sven Velt 4a73cb826c Fail if update_cache gets a message on stderr 8 年之前
.gitignore 8aa8100dbf Initial commit 8 年之前
README.md 9a8d3c71f0 Reformating README as .md 8 年之前
xbps.py 4a73cb826c Fail if update_cache gets a message on stderr 8 年之前

README.md

Ansible module for xbps package manager

Install

put xbps.py into library/ directory, next to your playbook/role

Arguments

one of "name", "update_cache" and "upgrade" required, but you can use up to all three at a time

  • name:

    • name or list of packages
    • "*" same as "upgrade=yes"
  • update_cache: (yes|no), default: no

    • sync remote repo index (xbps-install -S)
  • upgrade: (yes|no), default: no

    • update/upgrade all installed packages (xbps-install -u)
  • state: (present|latest|absent), default: present

    • desired state of name package(s)
  • recurse: (yes|no), default: no

    • if state=absent recursively remove dependencies

Example:

  • ansible localhost -m xbps -a "name=screen" installs "screen" package

  • ansible localhost -m xbps -a "name=screen state=latest" installs/updates "screen" package

  • ansible localhost -m xbps -a "name=screen state=absent" removes "screen" package

  • ansible localhost -m xbps -a "update_cache=yes" syncs remote repo index

  • ansible localhost -m xbps -a "upgrade=yes" upgrades all installed packages

  • ansible localhost -m xbps -a "name=screen update_cache=yes upgrade=yes" sync repo index, upgrades all installed packages and (maybe) installs screen