??????????????
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 d Z d d l Z d d l Z d d l
Z d d l Z d d l Z d d l
j Z d d l m Z d d l m Z d d l m Z m Z m Z d d l m Z m Z d d l m Z e Z d e f d
YZ d S( i ( t absolute_importt divisiont print_functionsA
author: Ansible Core Team
connection: jail
short_description: Run tasks in jails
description:
- Run commands or put/fetch files to an existing jail
version_added: "2.0"
options:
remote_addr:
description:
- Path to the jail
default: inventory_hostname
vars:
- name: ansible_host
- name: ansible_jail_host
remote_user:
description:
- User to execute as inside the jail
vars:
- name: ansible_user
- name: ansible_jail_user
N( t AnsibleError( t shlex_quote( t to_bytest to_nativet to_text( t ConnectionBaset BUFSIZE( t Displayt
Connectionc B` s e Z d Z d Z d Z e Z e Z d Z e
d Z d Z d Z
e j d Z d
e d Z d Z d
Z d Z d Z RS( s" Local BSD Jail based connections t conn_jail_namet jailc O` sΔ t t | j | | | | | j j | _ | j | k rP | | j | _ n t j d k rq t d n | j
d | _ | j
d | _ | j | j
k rΐ t d | j n d S( Ni s( jail connection requires running as roott jlst jexecs incorrect jail name %s( t superR t __init__t
_play_contextt remote_addrR
t modified_jailname_keyt ost geteuidR t _search_executablet jls_cmdt jexec_cmdt
list_jails( t selft play_contextt new_stdint argst kwargs( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/connection/jail.pyR = s c C` s/ t j j | } | s+ t d | n | S( Ns %s command not found in PATH( t distutilst spawnt find_executableR ( t
executablet cmd( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/connection/jail.pyR M s c C` s^ t j | j d d g d t j d t j d t j } | j \ } } t | d d j S( Ns -qt namet stdint stdoutt stderrt errorst surrogate_or_strict( t
subprocesst PopenR t PIPEt communicateR t split( R t pR' R( ( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/connection/jail.pyR T s
c C` sQ t t | j | j sM t j d j | j j d | j t
| _ n d S( s) connect to the jail; nothing to do here u' ESTABLISH JAIL CONNECTION FOR USER: {0}t hostN( R R t _connectt
_connectedt displayt vvvt formatR t remote_userR
t True( R ( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/connection/jail.pyR2 ] s %c
C` sη | j g } d } | j j d k rQ | d | j j g 7} d | j j d } n | | j | j j d | | g 7} t j d | f d | j g | D] } t | d d ^ q } t j
| d
t d | d t j d
t j } | S( s- run a command on the jail. This is only needed for implementing
put_file() get_file() so that we don't have to read the whole file
into memory.
compared to exec_command() it looses some niceties like being able to
return the process's exit code immediately.
t s -Us HOME=~t s -cs EXEC %sR1 R) R* t shellR&