Server IP : 85.193.89.191 / Your IP : 3.128.197.9 Web Server : Apache System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : bitrix ( 600) PHP Version : 8.1.27 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/979/cwd/lib/python2.7/site-packages/ansible/plugins/callback/ |
Upload File : |
� � �\c @` s� d d l m Z m Z m Z e Z d Z d d l Z e Z y d d l Z Wn e k rc e Z n Xd d l m Z d e f d � � YZ d S( i ( t absolute_importt divisiont print_functions� callback: jabber type: notification short_description: post task events to a jabber server description: - The chatty part of ChatOps with a Hipchat server as a target - This callback plugin sends status updates to a HipChat channel during playbook execution. version_added: "2.2" requirements: - xmpp (python lib https://github.com/ArchipelProject/xmpppy) options: server: description: connection info to jabber server required: True env: - name: JABBER_SERV user: description: Jabber user to authenticate as required: True env: - name: JABBER_USER password: description: Password for the user to the jabber server required: True env: - name: JABBER_PASS to: description: chat identifier that will recieve the message required: True env: - name: JABBER_TO N( t CallbackBaset CallbackModulec B` sY e Z d Z d Z d Z e Z d d � Z d � Z d � Z d � Z d � Z d � Z RS( g @t notificationt jabberc C` s� t t | � j d | � t s; | j j d � t | _ n t j d � | _ t j d � | _ t j d � | _ t j d � | _ | j p� | j p� | j p� | j d k r� t | _ | j j d � n d S( Nt displaysu The required python xmpp library (xmpppy) is not installed. pip install git+https://github.com/ArchipelProject/xmpppyt JABBER_SERVt JABBER_USERt JABBER_PASSt JABBER_TOsc Jabber CallBack wants the JABBER_SERV, JABBER_USER, JABBER_PASS and JABBER_TO environment variables( t superR t __init__t HAS_XMPPt _displayt warningt Truet disabledt ost getenvt servt j_usert j_passt j_tot None( t selfR ( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/callback/jabber.pyR ; s * c C` s� t j | j � } t j | j d g �} | j d | j d f � | j | j � | j d | j � �t j | j | � } | j d d � | j | � | j � d S( s Send messaget debugt serverif t resourcet typet chatN( t xmppt JIDR t ClientR t connectt autht getNodeR t getResourcet MessageR t setAttrt sendt disconnect( R t msgt jidt clientt message( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/callback/jabber.pyt send_msgM s % c C` s2 | j | j | j j � | j | j � | _ d S( N( t _clean_resultst _resultt _taskt actiont _dump_resultsR ( R t result( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/callback/jabber.pyt v2_runner_on_okX s c C` s | | _ d S( N( t task( R R7 t is_conditional( ( sC /usr/lib/python2.7/site-packages/ansible/plugins/callback/jabber.pyt v2_playbook_on_task_start\ s c C` s'