??????????????
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 d l Z d d l Z d d l 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 Z d e f d YZ d S(
i ( t absolute_importt divisiont print_functionN( t AnsibleError( t to_bytest to_native( t ConnectionBaset ensure_connect( t Displays’
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
Connectionc B` sn e Z d Z d Z e Z d Z d d e d Z d Z e
d e d Z d Z
d Z d Z RS(
sg
This is a connection plugin for podman. It uses podman binary to interact with the containers
t podmanc O` sS t t | j | | | | | j j | _ t | _ d | _ | j j
| _ d S( N( t superR t __init__t
_play_contextt remote_addrt
_container_idt Falset
_connectedt Nonet _mount_pointt remote_usert user( t selft play_contextt new_stdint argst kwargs( ( sE /usr/lib/python2.7/site-packages/ansible/plugins/connection/podman.pyR @ s
c
C` sU d g } t | t r( | j | n
| j | | rN | j | j n | ra | | 7} n g | D] } t | d d ^ qh } t j d | f d | j t j | d t
d t j d t j d t j } | j d
| \ } } t j
d | t j
d | t j
d
| j t | d d } t | d d } | j | | f S( 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
t errorst surrogate_or_stricts RUN %st hostt shellt stdint stdoutt stderrt inputs STDOUT %ss STDERR %ss
RC CODE %s( t
isinstancet strt appendt extendR R t displayt vvvt
subprocesst PopenR t PIPEt communicatet vvvvvt
returncode(
R t cmdt cmd_argst in_datat use_container_idt local_cmdt it pR R! ( ( sE /usr/lib/python2.7/site-packages/ansible/plugins/connection/podman.pyt _podmanI s&