Ansible module to manage packages with "xbps" package manager of Voidlinux
![]() |
8 年之前 | |
---|---|---|
.gitignore | 8 年之前 | |
README.md | 8 年之前 | |
xbps.py | 8 年之前 |
put xbps.py
into library/
directory, next to your playbook/role
one of "name", "update_cache" and "upgrade" required, but you can use up to all three at a time
name:
*
" same as "upgrade=yes
"update_cache: (yes|no), default: no
xbps-install -S
)upgrade: (yes|no), default: no
xbps-install -u
)state: (present|latest|absent), default: present
name
package(s)recurse: (yes|no), default: no
state=absent
recursively remove dependenciesExample:
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