??????????????
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 m Z d d l
m Z d d l m Z d d l m Z d d l 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_functions
author: Maykel Moya
connection: chroot
short_description: Interact with local chroot
description:
- Run commands or put/fetch files to an existing chroot on the Ansible controller.
version_added: "1.1"
options:
remote_addr:
description:
- The path of the chroot you want to access.
default: inventory_hostname
vars:
- name: ansible_host
executable:
description:
- User specified executable shell
ini:
- section: defaults
key: executable
env:
- name: ANSIBLE_EXECUTABLE
vars:
- name: ansible_executable
default: /bin/sh
chroot_exe:
version_added: '2.8'
description:
- User specified chroot binary
ini:
- section: chroot_connection
key: exe
env:
- name: ANSIBLE_CHROOT_EXE
vars:
- name: ansible_chroot_exe
default: chroot
N( t AnsibleError( t
is_executable( t get_bin_path( t shlex_quote( t to_bytest to_native( t ConnectionBaset BUFSIZE( t Displayt
Connectionc B` sz e Z d Z d Z e Z e Z 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 chroot based connections t chroott rootc O` sά t t | j | | | | | j j | _ t j d k rO t d n t j j
| j sz t d | j n t j j | j d } t | pΏ t j j
| oΏ t j j | sΨ t d | j n d S( Ni s* chroot connection requires running as roots %s is not a directorys bin/shs8 %s does not look like a chrootable dir (/bin/sh missing)( t superR t __init__t
_play_contextt remote_addrR
t ost geteuidR t patht isdirt joinR t lexistst islink( t selft play_contextt new_stdint argst kwargst chrootsh( ( sE /usr/lib/python2.7/site-packages/ansible/plugins/connection/chroot.pyR N s 0c C` s΅ t j j | j d r0 | j d | _ n t | j d | _ | j ss t d t | j d n t t | j
| j s± t j
d d | j t | _ n d S( s connect to the chroot t
chroot_exes% chroot command (%s) not found in PATHs THIS IS A LOCAL CHROOT DIRt hostN( R R t isabst
get_optiont
chroot_cmdR R R R R t _connectt
_connectedt displayt vvvR
t True( R ( ( sE /usr/lib/python2.7/site-packages/ansible/plugins/connection/chroot.pyR% c s " c
C` s | j d } | j | j | d | g } t j d | d | j g | D] } t | d d ^ qK } t j | d t d | d t j d
t j } | S( s/ run a command on the chroot. 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
executables -cs EXEC %sR! t errorst surrogate_or_strictt shellt stdint stdoutt stderr(
R# R$ R
R' R( R t
subprocesst Popent Falset PIPE( R t cmdR. R* t local_cmdt it p( ( sE /usr/lib/python2.7/site-packages/ansible/plugins/connection/chroot.pyt _buffered_exec_commandr s %c C` sV t t | j | d | d | | j | } | j | \ } } | j | | f S( s run a command on the chroot t in_datat sudoable( R R t exec_commandR9 t communicatet
returncode( R R5 R: R; R8 R/ R0 ( ( sE /usr/lib/python2.7/site-packages/ansible/plugins/connection/chroot.pyR<