??????????????
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ΦddlmZmZmZeZdZddlZddlZddl Z ddl m Z ddl m Z ddlmZddlmZyddlZeZWnek r»eZnXdefd „ƒYZdS( i(tabsolute_importtdivisiontprint_functionsu callback: slack callback_type: notification requirements: - whitelist in configuration - prettytable (python library) short_description: Sends play events to a Slack channel version_added: "2.1" description: - This is an ansible callback plugin that sends status updates to a Slack channel during playbook execution. - Before 2.4 only environment variables were available for configuring this plugin options: webhook_url: required: True description: Slack Webhook URL env: - name: SLACK_WEBHOOK_URL ini: - section: callback_slack key: webhook_url channel: default: "#ansible" description: Slack room to post in. env: - name: SLACK_CHANNEL ini: - section: callback_slack key: channel username: description: Username to post as. env: - name: SLACK_USERNAME default: ansible ini: - section: callback_slack key: username validate_certs: description: validate the SSL certificate of the Slack server. (For HTTPS URLs) version_added: "2.8" env: - name: SLACK_VALIDATE_CERTS ini: - section: callback_slack key: validate_certs default: True type: bool N(tcontext(tto_text(topen_url(t CallbackBasetCallbackModulecB`sheZdZdZdZdZeZd d„Z d d d d„Z d„Z d„Z d„Z d „ZRS( ssThis is an ansible callback plugin that sends status updates to a Slack channel during playbook execution. g@t notificationtslackcC`s^tt|ƒjd|ƒts;t|_|jjdƒnd|_ t j ƒj d |_ dS(NtdisplaysVThe `prettytable` python module is not installed. Disabling the Slack callback plugin.i(tsuperRt__init__tHAS_PRETTYTABLEtTruetdisabledt_displaytwarningtNonet playbook_nametuuidtuuid4thextguid(tselfR ((sB/usr/lib/python2.7/site-packages/ansible/plugins/callback/slack.pyR Rs   cC`s±tt|ƒjd|d|d|ƒ|jdƒ|_|jdƒ|_|jdƒ|_|jjdk|_ |jdƒ|_ |jdkr­t |_ |jjd ƒndS( Nt task_keyst var_optionstdirectt webhook_urltchanneltusernameitvalidate_certss}Slack Webhook URL was not provided. The Slack Webhook URL can be provided using the `SLACK_WEBHOOK_URL` environment variable.(R Rt set_optionst get_optionRRRRt verbositytshow_invocationRRRRR(RRRR((sB/usr/lib/python2.7/site-packages/ansible/plugins/callback/slack.pyR cs% cC`sΤidd6}i|jd6|jd6|d6dd6dd 6}tj|ƒ}|jj|ƒ|jj|jƒy2t|jd |d |jd |ƒ}|j ƒSWn-t k rΟ}|jj d t |ƒƒnXdS(Nsapplication/jsons Content-typeRRt attachmentstnonetparsesGhttp://cdn2.hubspot.net/hub/330046/file-449187601-png/ansible_badge.pngticon_urltdataRtheadersu%Could not submit message to Slack: %s( RRtjsontdumpsRtdebugRRRtreadt ExceptionRR(RR$R)tpayloadR(tresponsete((sB/usr/lib/python2.7/site-packages/ansible/plugins/callback/slack.pytsend_msgts$      c C`s tjj|jƒ|_d|jg}g}tjrg|jrgtjd}tjd}tjd}tjd}gtjdD]}tjj |ƒ^q‚} |j ddj | ƒƒ|rμ|d gkrμ|j d dj |ƒƒn|r|j d dj |ƒƒn|r)|j d |ƒn|rL|j d dj |ƒƒn|j dtjdƒn|j d|jƒdj |ƒg} |r°| j ddj |ƒƒndj | ƒ} i| d6i| d6gd6dd6dddgd6g} |j d| ƒdS(Ns*Playbook initiated* (_%s_)ttagst skip_tagst extra_varstsubsett inventorysInventory: %ss, tallsTags: %ssSkip Tags: %ssLimit: %ssExtra Vars: %st sby *%s*t remote_users *%s*s ``` %s ```s tfallbacktvaluetfieldsRtcolorttextt mrkdwn_inR$( tostpathtbasenamet _file_nameRRRtCLIARGSR#tabspathtappendtjoinR2( Rtplaybookttitletinvocation_itemsR3R4R5R6tiR7t msg_itemstmsgR$((sB/usr/lib/python2.7/site-packages/ansible/plugins/callback/slack.pytv2_playbook_on_starts@    , cC`sk|jpd|j}d|j|f}i|d6|d6dd6dddgd6g}|jd |ƒd S( sDisplay Play start messagessPlay name not specified (%s)s*Starting play* (_%s_) *%s*R;R?RR>R=R@R$N(tnamet_uuidRR2(RtplayRPRNR$((sB/usr/lib/python2.7/site-packages/ansible/plugins/callback/slack.pytv2_playbook_on_play_start½sc C`st|jjƒƒ}tjdddddddgƒ}t}t}xŒ|D]„}|j|ƒ}|dd krzt}n|d d kr“t}n|j|ggd d d dd dgD]}||^qΈƒqLWg} d|j g} |sφ|r d} | j dƒnd} | j dƒ| j d|ƒdj | ƒ} | j i| d6i| d6gd6| d6dddgd6ƒ|j d| ƒdS(s&Display info about playbook statisticstHosttOktChangedt UnreachabletFailurestRescuedtIgnoredtfailuresit unreachabletoktchangedtrescuedtignoreds*Playbook Complete* (_%s_)tdangers *Failed!*tgoods *Success!*s ``` %s ```s R;R<R=R>R?R@R$N( tsortedt processedtkeyst prettytablet PrettyTabletFalset summarizeRtadd_rowRRGRHR2( RtstatsthoststtR[R\thtstkR$RMR>RN((sB/usr/lib/python2.7/site-packages/ansible/plugins/callback/slack.pytv2_playbook_on_statsΜs:   )   N(t__name__t __module__t__doc__tCALLBACK_VERSIONt CALLBACK_TYPEt CALLBACK_NAMERtCALLBACK_NEEDS_WHITELISTRR R R2RORSRq(((sB/usr/lib/python2.7/site-packages/ansible/plugins/callback/slack.pyRIs   0 (t __future__RRRttypet __metaclass__t DOCUMENTATIONR*RARtansibleRtansible.module_utils._textRtansible.module_utils.urlsRtansible.plugins.callbackRRfRR t ImportErrorRhR(((sB/usr/lib/python2.7/site-packages/ansible/plugins/callback/slack.pyts0