??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
Udac @` s d d l m Z m Z m Z e Z i d d 6d g d 6d d 6Z d Z d Z d
Z d d l
Z
d d l m Z d
Z
d d Z d Z d Z d Z d Z d Z d Z e d k r e n d S( i ( t absolute_importt divisiont print_functions 1.1t metadata_versiont previewt statust communityt supported_bysg
---
module: xbps
short_description: Manage packages with XBPS
description:
- Manage packages with the XBPS package manager.
author:
- "Dino Occhialini (@dinoocch)"
- "Michael Aldridge (@the-maldridge)"
version_added: "2.3"
options:
name:
description:
- Name of the package to install, upgrade, or remove.
state:
description:
- Desired state of the package.
default: "present"
choices: ["present", "absent", "latest"]
recurse:
description:
- When removing a package, also remove its dependencies, provided
that they are not required by other packages and were not
explicitly installed by a user.
type: bool
default: 'no'
update_cache:
description:
- Whether or not to refresh the master package lists. This can be
run as part of a package installation or as a separate step.
type: bool
default: 'yes'
upgrade:
description:
- Whether or not to upgrade whole system
type: bool
default: 'no'
s]
# Install package foo
- xbps: name=foo state=present
# Upgrade package foo
- xbps: name=foo state=latest update_cache=yes
# Remove packages foo and bar
- xbps: name=foo,bar state=absent
# Recursively remove package foo
- xbps: name=foo state=absent recurse=yes
# Update package cache
- xbps: update_cache=yes
# Upgrade packages
- xbps: upgrade=yes
s
msg:
description: Message about results
returned: success
type: str
sample: "System Upgraded"
packages:
description: Packages that are affected/would be affected
type: list
sample: ["ansible"]
returned: success
N( t
AnsibleModulec C` s t t | S( s Returns package install state( t boolt len( t xbps_output( ( sE /usr/lib/python2.7/site-packages/ansible/modules/packaging/os/xbps.pyt is_installedZ s t presentc C` s | d k r d | d | f } | j | d t \ } } } t | sT t t f Sd | d } | j | d t \ } }
} | d k s | d k r t | |
k f St t f Sd S(
s Returns Package infoR
s %s %st queryt check_rcs %s -Sunt installi i N( t run_commandt FalseR t True( t modulet xbps_patht namet statet lcmdt lrct lstdoutt lstderrt rcmdt rrct rstdoutt rstderr( ( sE /usr/lib/python2.7/site-packages/ansible/modules/packaging/os/xbps.pyt
query_package_ s
c C` sc d | d } | j | d t \ } } } | d k rK | j d d n d | k r[ t St Sd S( s) Returns True if update_package_db changeds %s -SR R i t msgs Could not update package dbs avg rateN( R R t fail_jsonR ( R R t cmdt rct stdoutt stderr( ( sE /usr/lib/python2.7/site-packages/ansible/modules/packaging/os/xbps.pyt update_package_dbs s c C` s d | d } d | d } | j | d t \ } } } | d k r t | j d k rw | j d t d d q | j | d t \ } } } | d k r | j d t d d q | j d d
n | j d d
d S( s% Returns true is full upgrade succeedss %s -uyR s %s -unR i t changedR! s Nothing to upgrades System upgradeds Could not upgradeN( R R R
t
splitlinest exit_jsonR R" ( R R t
cmdupgradet cmdneedupgradeR$ R% R&