??????????????
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»ddlmZmZmZeZddlZddlZddlZddl m Z ddl m Z m Z ddlmZmZddlmZeƒZdZdefd „ƒYZdS( i(tabsolute_importtdivisiontprint_functionN(t AnsibleError(tto_bytest to_native(tConnectionBasetensure_connect(tDisplays’ author: Tomas Tomecek (ttomecek@redhat.com) connection: podman short_description: Interact with an existing podman container description: - Run commands or put/fetch files to an existing container using podman tool. version_added: 2.8 options: remote_addr: description: - The ID of the container you want to access. default: inventory_hostname vars: - name: ansible_host remote_user: description: - User specified via name or UID which is used to execute commands inside the container. If you specify the user via UID, you must set C(ANSIBLE_REMOTE_TMP) to a path that exits inside the container and is writable by Ansible. ini: - section: defaults key: remote_user env: - name: ANSIBLE_REMOTE_USER vars: - name: ansible_user t ConnectioncB`sneZdZdZeZd„Zd d ed„Zd„Z e d e d„ƒZ d„Z d„Zd„ZRS( sg This is a connection plugin for podman. It uses podman binary to interact with the containers tpodmancO`sStt|ƒj||||Ž|jj|_t|_d|_ |jj |_ dS(N( tsuperR t__init__t _play_contextt remote_addrt _container_idtFalset _connectedtNonet _mount_pointt remote_usertuser(tselft play_contextt new_stdintargstkwargs((sE/usr/lib/python2.7/site-packages/ansible/plugins/connection/podman.pyR @s   c C`sUdg}t|tƒr(|j|ƒn |j|ƒ|rN|j|jƒn|ra||7}ng|D]}t|ddƒ^qh}tjd|fd|jƒtj |dt dtj dtj d tj ƒ}|j d |ƒ\}} tj d |ƒtj d | ƒtj d |jƒt|ddƒ}t| ddƒ} |j|| fS(s run podman executable :param cmd: podman's command to execute (str or list) :param cmd_args: list of arguments to pass to the command (list of str/bytes) :param in_data: data passed to podman's stdin :return: return code, stdout, stderr R terrorstsurrogate_or_strictsRUN %sthosttshelltstdintstdouttstderrtinputs STDOUT %ss STDERR %ss RC CODE %s(t isinstancetstrtappendtextendRRtdisplaytvvvt subprocesstPopenRtPIPEt communicatetvvvvvt returncode( Rtcmdtcmd_argstin_datatuse_container_idt local_cmdtitpR R!((sE/usr/lib/python2.7/site-packages/ansible/plugins/connection/podman.pyt_podmanIs&   %cC`s™tt|ƒjƒ|jdƒ\}|_}|dkr]tjd|j|jƒfƒn/|jjƒ|_tj d|j||fƒt |_ dS(s no persistent connection is being maintained, mount container's filesystem so we can easily access it tmountis Failed to mount container %s: %ssMOUNTPOINT %s RC %s STDERR %rN( R R t_connectR6RR'tvRtstripR-tTrueR(RtrcR!((sE/usr/lib/python2.7/site-packages/ansible/plugins/connection/podman.pyR8is #c C`sͺtt|ƒj|d|d|ƒtjt|ddƒƒ}dg}|jrh|jd|jfƒn|j|||ƒ\}}}t j d||fƒ|||fS(s? run specified command in a running OCI container using podman R1tsudoableRRtexecs--usersSTDOUT %r STDERR %r( R R t exec_commandtshlextsplitRRR&R6R'R-( RR/R1R=t cmd_args_listtexec_args_listR<R R!((sE/usr/lib/python2.7/site-packages/ansible/plugins/connection/podman.pyR?ws"  cC`sMtt|ƒj||ƒtjd||fd|jƒ|j sL|jr|jd||jd|gdt ƒ\}}}|dkrIdt |ƒkr|jdd||jd|gdt ƒ\}}}|dkrt d |||j|fƒ‚qqqInA|jt |d d ƒ}t jt |d d ƒt |d d ƒƒd S( sH Place a local file located in 'in_path' inside container at 'out_path' s PUT %s TO %sRtcpt:R2is:cannot copy into running rootless container with pause sets --pause=falses4Failed to copy file from %s to %s in container %s %sRRN(R R tput_fileR'R(RRRR6RRRRtshutiltcopyfile(Rtin_pathtout_pathR<R R!t real_out_path((sE/usr/lib/python2.7/site-packages/ansible/plugins/connection/podman.pyRF‡s" , / %cC`sκtt|ƒj||ƒtjd||fd|jƒ|js₯|jd|jd||gdtƒ\}}}|dkrζt d|||j|fƒ‚qζnA|jt |dd ƒ}t j t |dd ƒt |dd ƒƒd S( sS obtain file specified via 'in_path' from the container and place it at 'out_path' sFETCH %s TO %sRRDRER2is7Failed to fetch file from %s to %s from container %s %sRRN( R R t fetch_fileR'R(RRR6RRRRGRH(RRIRJR<R R!t real_in_path((sE/usr/lib/python2.7/site-packages/ansible/plugins/connection/podman.pyRL s  , cC`s tt|ƒjƒt|_dS(s unmount container's filesystem N(R R tcloseRR(R((sE/usr/lib/python2.7/site-packages/ansible/plugins/connection/podman.pyRN±sN(t__name__t __module__t__doc__t transportR;thas_pipeliningR RR6R8RRR?RFRLRN(((sE/usr/lib/python2.7/site-packages/ansible/plugins/connection/podman.pyR 7s    (t __future__RRRttypet __metaclass__R@RGR)tansible.errorsRtansible.module_utils._textRRtansible.plugins.connectionRRtansible.utils.displayRR't DOCUMENTATIONR (((sE/usr/lib/python2.7/site-packages/ansible/plugins/connection/podman.pyt s