??????????????
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@`sddlmZmZmZeZidd6dgd6dd6ZdZd Zdd l Z dd l Z dd l Z dd l Z yRdd l a dd la dd la dd la dd la dd la eZWnek reZnXdd lmZmZdd lmZdd lmZmZddlm Z ddl!m"Z"ddl#m$Z$m%Z%dZ&de$fdYZ'dZ(e)dkre(nd S(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontstableinterfacetstatustcoret supported_bys --- module: dnf version_added: 1.9 short_description: Manages packages with the I(dnf) package manager description: - Installs, upgrade, removes, and lists packages and groups with the I(dnf) package manager. options: name: description: - "A package name or package specifier with version, like C(name-1.0). When using state=latest, this can be '*' which means run: dnf -y update. You can also pass a url or a local path to a rpm file. To operate on several packages this can accept a comma separated string of packages or a list of packages." required: true aliases: - pkg type: list elements: str list: description: - Various (non-idempotent) commands for usage with C(/usr/bin/ansible) and I(not) playbooks. See examples. state: description: - Whether to install (C(present), C(latest)), or remove (C(absent)) a package. - Default is C(None), however in effect the default action is C(present) unless the C(autoremove) option is enabled for this module, then C(absent) is inferred. choices: ['absent', 'present', 'installed', 'removed', 'latest'] enablerepo: description: - I(Repoid) of repositories to enable for the install/update operation. These repos will not persist beyond the transaction. When specifying multiple repos, separate them with a ",". disablerepo: description: - I(Repoid) of repositories to disable for the install/update operation. These repos will not persist beyond the transaction. When specifying multiple repos, separate them with a ",". conf_file: description: - The remote dnf configuration file to use for the transaction. disable_gpg_check: description: - Whether to disable the GPG checking of signatures of packages being installed. Has an effect only if state is I(present) or I(latest). - This setting affects packages installed from a repository as well as "local" packages installed from the filesystem or a URL. type: bool default: 'no' installroot: description: - Specifies an alternative installroot, relative to which all packages will be installed. version_added: "2.3" default: "/" releasever: description: - Specifies an alternative release from which all packages will be installed. version_added: "2.6" autoremove: description: - If C(yes), removes all "leaf" packages from the system that were originally installed as dependencies of user-installed packages but which are no longer required by any such package. Should be used alone or when state is I(absent) type: bool default: "no" version_added: "2.4" exclude: description: - Package name(s) to exclude when state=present, or latest. This can be a list or a comma separated string. version_added: "2.7" skip_broken: description: - Skip packages with broken dependencies(devsolve) and are causing problems. type: bool default: "no" version_added: "2.7" update_cache: description: - Force dnf to check if cache is out of date and redownload if needed. Has an effect only if state is I(present) or I(latest). type: bool default: "no" aliases: [ expire-cache ] version_added: "2.7" update_only: description: - When using latest, only update installed packages. Do not install packages. - Has an effect only if state is I(latest) default: "no" type: bool version_added: "2.7" security: description: - If set to C(yes), and C(state=latest) then only installs updates that have been marked security related. - Note that, similar to ``dnf upgrade-minimal``, this filter applies to dependencies as well. type: bool default: "no" version_added: "2.7" bugfix: description: - If set to C(yes), and C(state=latest) then only installs updates that have been marked bugfix related. - Note that, similar to ``dnf upgrade-minimal``, this filter applies to dependencies as well. default: "no" type: bool version_added: "2.7" enable_plugin: description: - I(Plugin) name to enable for the install/update operation. The enabled plugin will not persist beyond the transaction. version_added: "2.7" disable_plugin: description: - I(Plugin) name to disable for the install/update operation. The disabled plugins will not persist beyond the transaction. version_added: "2.7" disable_excludes: description: - Disable the excludes defined in DNF config files. - If set to C(all), disables all excludes. - If set to C(main), disable excludes defined in [main] in dnf.conf. - If set to C(repoid), disable excludes defined for given repo id. version_added: "2.7" validate_certs: description: - This only applies if using a https url as the source of the rpm. e.g. for localinstall. If set to C(no), the SSL certificates will not be validated. - This should only set to C(no) used on personally controlled sites using self-signed certificates as it avoids verifying the source site. type: bool default: "yes" version_added: "2.7" allow_downgrade: description: - Specify if the named package and version is allowed to downgrade a maybe already installed higher version of that package. Note that setting allow_downgrade=True can make this module behave in a non-idempotent way. The task could end up with a set of packages that does not match the complete list of specified packages to install (because dependencies between the downgraded package and others can cause changes to the packages which were in the earlier transaction). type: bool default: "no" version_added: "2.7" install_repoquery: description: - This is effectively a no-op in DNF as it is not needed with DNF, but is an accepted parameter for feature parity/compatibility with the I(yum) module. type: bool default: "yes" version_added: "2.7" download_only: description: - Only download the packages, do not install them. default: "no" type: bool version_added: "2.7" lock_timeout: description: - Amount of time to wait for the dnf lockfile to be freed. required: false default: 30 type: int version_added: "2.8" install_weak_deps: description: - Will also install all packages linked by a weak dependency relation. type: bool default: "yes" version_added: "2.8" download_dir: description: - Specifies an alternate directory to store packages. - Has an effect only if I(download_only) is specified. type: str version_added: "2.8" notes: - When used with a `loop:` each package will be processed individually, it is much more efficient to pass the list directly to the `name` option. - Group removal doesn't work if the group was installed with Ansible because upstream dnf's API doesn't properly mark groups as installed, therefore upon removal the module is unable to detect that the group is installed (https://bugzilla.redhat.com/show_bug.cgi?id=1620324) requirements: - "python >= 2.6" - python-dnf - for the autoremove option you need dnf >= 2.0.1" author: - Igor Gnatenko (@ignatenkobrain) - Cristian van Ee (@DJMuggs) - Berend De Schouwer (@berenddeschouwer) - Adam Miller (@maxamillion) s - name: install the latest version of Apache dnf: name: httpd state: latest - name: install the latest version of Apache and MariaDB dnf: name: - httpd - mariadb-server state: latest - name: remove the Apache package dnf: name: httpd state: absent - name: install the latest version of Apache from the testing repo dnf: name: httpd enablerepo: testing state: present - name: upgrade all packages dnf: name: "*" state: latest - name: install the nginx rpm from a remote repo dnf: name: 'http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm' state: present - name: install nginx rpm from a local file dnf: name: /usr/local/src/nginx-release-centos-6-0.el6.ngx.noarch.rpm state: present - name: install the 'Development tools' package group dnf: name: '@Development tools' state: present - name: Autoremove unneeded packages installed as dependencies dnf: autoremove: yes - name: Uninstall httpd but keep its dependencies dnf: name: httpd state: absent autoremove: no - name: install a modularity appstream with defined stream and profile dnf: name: '@postgresql:9.6/client' state: present - name: install a modularity appstream with defined stream dnf: name: '@postgresql:9.6' state: present - name: install a modularity appstream with defined profile dnf: name: '@postgresql/client' state: present N(t to_nativetto_text(t fetch_url(tPY2t text_type(t LooseVersion(t AnsibleModule(tYumDnftyumdnf_argument_specit DnfModulecB`seZdZdZdZdZdZdZdZdZ dZ d Z d Z d d Z d ZdZdZdZdZedZdZdZdZdZdZdZedZdZRS(s4 DNF Ansible module back-end implementation cC`sftt|j||jd|_d|_ytjj|_ Wnt k rat |_ nXdS(Ns/var/cache/dnf/*_lock.pidtdnf( tsuperRt__init__t _ensure_dnftlockfilet pkg_mgr_nameRtbaset WITH_MODULESt with_modulestAttributeErrortFalse(tselftmodule((sD/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/dnf.pyREs    cC`stS(N(tTrue(R((sD/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/dnf.pytis_lockfile_pid_validRscC`sAtdt|ks0tdt|kr=dj|S|S(s For unhandled dnf.exceptions.Error scenarios, there are certain error messages we want to filter in an install scenario. Do that here. sno package matchedsNo match for argument:sNo package {0} available.(R tformat(Rtspecterror((sD/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/dnf.pyt_sanitize_dnf_error_msg_installWs cC`sAdt|ks$dt|kr7tdj|fSt|fS(s For unhandled dnf.exceptions.Error scenarios, there are certain error messages we want to ignore in a removal scenario as known benign failures. Do that here. sno package matchedsNo match for argument:s{0} is not installed(RRR!R(RR"R#((sD/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/dnf.pyt_sanitize_dnf_error_msg_removedscC`si|jd6|jd6t|jd6|jd6|jd6|jd6}dj||d<|jd krwd |d d?d@g@}|jdA\}}}|r|r||kr||fS|dfS(BNtaarch64t alphaev56talphaev5t alphaev67talphaev6talphat alphapca56tamd64tarmv3ltarmv4btarmv4lt armv5tejltarmv5teltarmv5tltarmv6hltarmv6ltarmv7hltarmv7hnltarmv7ltathlontgeodeti386ti486ti586ti686tia32etia64tm68ktmips64eltmips64t mips64r6eltmips64r6tmipseltmipstmipsr6eltmipsr6tnoarchtpentium3tpentium4tppc32dy4t ppc64iseriestppc64letppc64tppc64p7t ppc64pseriestppc8260tppc8560t ppciseriestppct ppcpseriestriscv64ts390ts390xtsh3tsh4atsh4tshtsparc64tsparc64vtsparctsparcv8tsparcv9tsparcv9vtx86_64t.(t rpartitiontNone(Rt packagenametredhat_rpm_archesR&t delimiterR'((sD/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/dnf.pyt_split_package_archs c C`sq|ddkr|d }ntjd}yd}|j|\}}|rY|}n|j|}|r|j|j\}}}} | s|jddj rdSndSWnBtk r} |j j dd|t | fdd d gnX|sd }nd |krK|jd } | d}d j | d }ni|d6|d6| d6|d6} | S(s Return a dictionary of information for a package name string or None if the package name doesn't contain at least all NVR elements is.rpms$(\S+)-(?:(\d*):)?(.*)-(~?\w+[\w.+]*)Rvitmsgs)Error attempting to parse package: %s, %strcitresultst0t:tR&R(R)R*N( tretcompileRxR|tmatchtgroupstsplittisdigitRRt fail_jsonRtjoin( RRyt rpm_nevr_reR'tnevrtrpm_nevr_matchR&R(R*R)tet epoch_nameR4((sD/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/dnf.pyt_packagename_dicts>  !!      cC`s|dkrd}n t|}t|}t|}|dkrNd}n t|}t|}t|}tjjj|||f|||f}|S(NR(RxR0Rtrpmt labelCompare(Rte1tv1tr1te2tv2tr2R~((sD/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/dnf.pyt _compare_evrs          *c C`s?tjjt|jddd\}}tjd|jjd|dddt }|jj |j yt |j|\}}|s|jj dd ||dfd gn|jt}x&|r|j||jt}qW|jWn<tk r7}|jj dd |t|fd gnX|j S( Nt/itdirtprefixtsuffixs.rpmtdeleteR}sFailure downloading %s, %sR(tostpathtsplitextR0trsplitttempfiletNamedTemporaryFileRttmpdirRtadd_cleanup_fileR&R RtreadtBUFSIZEtwritetcloset ExceptionR( RR"t package_nametdummyt package_filetrsptinfotdataR((sD/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/dnf.pytfetch_rpm_from_urls&.*      c C`s5ts1trd}nd}|jjrL|jjddj|dgn|jjddd|g\}}}yLd dlad dlad dl ad dl ad dl ad dl aWq1t k r-|jjdd jtjtjjd d |dgd dj|d|d|d|q1XndS(Ns python2-dnfs python3-dnfR}sE`{0}` is not installed, but it is requiredfor the Ansible dnf module.RRtinstalls-yisCould not import the dnf python module using {0} ({1}). Please install `{2}` package or ensure you have specified the correct ansible_python_interpreter.s Rtcmdsdnf install -y {0}R~tstdouttstderr(tHAS_DNFR Rt check_modeRR!t run_commandRtdnf.clit dnf.consttdnf.exceptionst dnf.subjecttdnf.utilt ImportErrortsyst executableR*treplace(RR3R~RR((sD/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/dnf.pyRs6     '        RcC`s|j}|rRtj|tjsF|jjddd|dgqR||_n|jd|_| |_ | |_ t |_ ||_ |jj||jrt|j}|j|j||_n|jrt|j}|j|kr|j|j||_qn|jdk r7|j|jd|j?|j@|d#|d$|d%}|dkrY |jj,|qY q q Wt)}|jr| |jjny"|jjAd&|s |dr d'|d<|j j |nd(|d<|j jB|nt)|d<|jCr d)}nd*}x4|jjDjED]#}|djd+j||q Wx1|jjDjFD] }|djd,j|qA W|dr d'|d<|j j |n|j jGr d-|d<|j jB|nyx|jCr|jHr|jj*jIrtjJjK|jj*jI|jj*jI|jjLjM_Nn|jjO|jjDjEWnAtjjPk rp}|j j dd.jtQ|dgnX|jRs=x|jjDjED]}t}|jjS|\} }!| dkrqnK| dkry|jjT|Wq tjjk r}t)}q Xnt)}|rd/j|}"|j j d|"qqWn|jCrY|j jB|n |jjU|drd'|d<|j jB|n|j jB|Wntjjk r}d0jt||d<|j j |ntjjk rx}tQd1tQ|krLt|d<|djd2jt||j jB|qyd3jt||d<|j j |nXdS(5NRR}tchangedRiR~tfailuresitabsentt*tlatests9Depsolve Error occured attempting to upgrade all packagescs`s|]}|jVqdS(N(R2(t.0tg((sD/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/dnf.pys ssNo group {0} available.R/tpresents Installed {0}sModule {0} installed.R sGroup {0} already installed.sGroup {0} installed.s7Depsolve Error occured attempting to install group: {0}s=Depsolve Error occured attempting to install environment: {0}s@Packages providing %s not installed due to update_only specifiedRRsModule {0} upgraded.sGroup {0} upgraded.R"s3Cannot remove paths -- please specify package name.sModule {0} removed.s {0} - {1}R&R,R(R*R)t allow_erasings0Failed to install some of the specified packagess Nothing to dot Downloadedt Installeds{0}: {1}s Removed: {0}s@Check mode: No changes made, but would have if not in check modes Failed to download packages: {0}s(Failed to validate GPG signature for {0}sDepsolve Error occured: {0}salready installedsPackage already installed: {0}sUnknown Error occured: {0}(s installedR[(VRR.RRRt upgrade_allRRR$RRR<R2tcompstgroup_by_patternRR tenvironment_by_patternR!RKRRSR3RRt MarkingErrorsRRt group_installtconsttGROUP_PACKAGE_TYPESR%tenvironment_installRHRAR)R$R"t group_upgradet CompsErrortenvironment_upgradeRRtbesttremoveRtresett group_removeRtenvironment_removeRRR/R#R%RtmapR0RRRRR(R*R)tresolveRRt transactiont install_sett remove_setRRRtutilt ensure_dirRtalltpkgdirtdownload_packagest DownloadErrorR Rt_sig_check_pkgt_get_key_for_packagetdo_transaction(#RR\tresponsetfailure_responseRR5t group_specsR7R8tptfRt environmentst group_spectgroupt environmentRJRtgroup_pkg_count_installedR@R"R&tinstall_resultR/t is_failurethandled_remove_errorRRRtinstall_actionR3tfailtgpgrestgpgerrR}((sD/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/dnf.pytensures    !      1  . .       $    1   %. !.     $    1     &'         !    !!            cC`stS(N(R(((sD/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/dnf.pythas_dnfsc C`s|jrJttjtdkrJ|jjddtjdgqJn|jrttjtdkr|jjddtjdgqn|jr|j r|j r|j |j |j |j |j|j|_|jjdddtdgd d n|jd kr!d |_n|j rj|j |j |j |j |j|j|_|j|j ntjjs|jjdd dgn|j |j |j |j |j|j|_|jrtjjj|j|_n|jd S(sThe main function.s2.0.1R}s9Autoremove requires dnf>=2.0.1. Current dnf version is %sRs2.6.2s;download_dir requires dnf>=2.6.2. Current dnf version is %ss Cache updatedRTR~iR/s/This command has to be run under the root user.N(RR RRCRRRRR.RRRRRRRRRRRRxRRut am_i_rootRR3t ModuleBaseR(R((sD/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/dnf.pyRsH               (t__name__t __module__t__doc__RR R$R%R5R|RRRRRRRRRRRR)R,R<RARKRSRt staticmethodRR(((sD/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/dnf.pyR@s6     1   $ K  3    <  $   Xc C`swtt}t|}y|jWnJtjjk rr}|jddjt |dddgdt nXdS(NR}s#Failed to synchronize repodata: {0}R~iRRT( RRRRRRRRR!RR(Rtmodule_implementationtde((sD/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/dnf.pytmain=s    t__main__(*t __future__RRRttypet __metaclass__tANSIBLE_METADATAt DOCUMENTATIONtEXAMPLESRRRRRRRRRRRRRRtansible.module_utils._textRR tansible.module_utils.urlsR tansible.module_utils.sixR R tdistutils.versionR tansible.module_utils.basicRtansible.module_utils.yumdnfRRRRRR(((sD/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/dnf.pyt sF   F