??????????????
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 Zd Z dd l Z dd l Z dd l m Z d ZdZdZdZdZdZdZdZdZedkrend S(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust communityt supported_bys --- module: snap short_description: Manages snaps version_added: "2.8" description: - "Manages snaps packages." options: name: description: - Name of the snap to install or remove. Can be a list of snaps. required: true state: description: - Desired state of the package. required: false default: present choices: [ absent, present ] classic: description: - Confinement policy. The classic confinement allows a snap to have the same level of access to the system as "classic" packages, like those managed by APT. This option corresponds to the --classic argument. This option can only be specified if there is a single snap in the task. type: bool required: false default: False channel: description: - Define which release of a snap is installed and tracked for updates. This option can only be specified if there is a single snap in the task. type: str required: false default: stable author: - Victor Carceler (@vcarceler) - Stanislas Lange (@angristan) s # Install "foo" and "bar" snap - name: Install foo snap: name: - foo - bar # Remove "foo" snap - name: Remove foo snap: name: foo state: absent # Install a snap with classic confinement - name: Install "foo" with option --classic snap: name: foo classic: yes # Install a snap with from a specific channel - name: Install "foo" with option --channel=latest/edge snap: name: foo channel: latest/edge s classic: description: Whether or not the snaps were installed with the classic confinement type: bool returned: When snaps are installed channel: description: The channel the snaps were installed from type: str returned: When snaps are installed cmd: description: The command that was executed on the host type: str returned: When changed is true snaps_installed: description: The list of actually installed snaps type: list returned: When any snaps have been installed snaps_removed: description: The list of actually removed snaps type: list returned: When any snaps have been removed N(t AnsibleModulecC`sBx;|jdD],}t||s|jdd|qqWdS(sEnsure that all exist.tnametmsgs No snap matching '%s' available.N(tparamst snap_existst fail_json(tmodulet snap_name((sE/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/snap.pytvalidate_input_snapsvscC`sX|jdt}|d|g}dj|}|j|dt\}}}|dkS(Ntsnaptinfot tcheck_rci(t get_bin_pathtTruetjoint run_commandtFalse(RRt snap_patht cmd_partstcmdtrctoutterr((sE/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/snap.pyR }s cC`sX|jdt}|d|g}dj|}|j|dt\}}}|dkS(NRtlistRRi(RRRRR(RRRRRRRR((sE/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/snap.pytis_snap_installeds c`sjjd}jddk}|r/tjntfd}g|D]}||rN|^qNS(s4Construct a list of snaps to use for current action.R tstatetpresentc`st|S(N(R!(ts(Rtnegation_predicate(sE/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/snap.pyt predicates(R toperatortnot_tbool(Rtsnapstis_present_stateR&R$((RR%sE/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/snap.pytget_snap_for_actions  cC`sidd6dd6}|jd}|jdr7dgng}|jdrp|jdd krpd |jdgng}|jd t}||}||g}|dkr|||7}n|S( NtinstallR#tremovetabsentR"tclassics --classictchanneltstables --channelR(R RR(Rt action_mapR"R0R1Rt snap_actionR((sE/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/snap.pytget_base_cmd_partss  9   cC`s|jddk}t|dk}t|}d|kpFd|k}|oX|oX|sf||gSg|D]}||g^qmS(s*Return list of cmds to run in exec format.R"R#is --classics --channel(R tlenR5(Rt snap_namestis_install_modethas_multiple_snapsRthas_one_pkg_paramsR$((sE/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/snap.pyt get_cmd_partss  cC`sQt||}djd|D}dj|}|f|j|dtS(Ns; cs`s|]}dj|VqdS(RN(R(t.0tc((sE/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/snap.pys ss sh -c "{0}"R(R;RtformatRR(RR7t cmds_partsR((sE/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/snap.pyt run_cmd_forsc C`s|jddk}|r;i|jdd6|jdd6ni}t|}|si|jdt|nitd6|djd|rdnd 6}|jr|jt||nt||\}}}}i|d 6|d 6|d 6|d 6} |dkr"|jt|t| |nydjd |} |rt j d|} | dk r| j d} djd| } qn|j d| t| |dS(NR"R#R0R1tchangedssnaps_{result}tresultt installedtremovedRRtstdouttstderrisoOoops! Snap installation failed while executing '{cmd}', please examine logs and error output for more details.s]^error: This revision of snap "(?P\w+)" was published using classic confinementt package_names?Couldn't install {name} because it requires classic confinementR R (R R,t exit_jsonRRR>t check_modetdictR@tretmatchtNonetgroupR ( RR8t exit_kwargstactionable_snapstchanged_def_argsRRRRt cmd_out_argsR tmterr_pkg((sE/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/snap.pytexecute_actions2. "   " c C`sitdddtd6tdddtdddd dgd 6tdd dtdtd 6tdddtdd d6}td|dt}t|t|dS(NttypeR trequiredR tstrtdefaultR#tchoicesR/R"R)R0R2R1t argument_spectsupports_check_mode(RJRRRRRU(t module_argsR((sE/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/snap.pytmains(  t__main__(t __future__RRRRVt __metaclass__tANSIBLE_METADATAt DOCUMENTATIONtEXAMPLEStRETURNR'RKtansible.module_utils.basicRRR R!R,R5R;R@RUR^t__name__(((sE/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/snap.pyt s,  -      )