Server IP : 85.193.89.191 / Your IP : 18.118.26.112 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 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 e a i d d 6d j e e j � d 6d d 6d d 6d j e e j � d 6d j e e j � d 6d d 6d j e e j � d 6Z d � Z d � Z d e f d � � YZ d S( i ( t absolute_importt divisiont print_functions callback: selective callback_type: stdout requirements: - set as main display callback short_description: only print certain tasks version_added: "2.4" description: - This callback only prints tasks that have been tagged with `print_action` or that have failed. This allows operators to focus on the tasks that provide value only. - Tasks that are not printed are placed with a '.'. - If you increase verbosity all tasks are printed. options: nocolor: default: False description: This setting allows suppressing colorizing output env: - name: ANSIBLE_NOCOLOR - name: ANSIBLE_SELECTIVE_DONT_COLORIZE ini: - section: defaults key: nocolor type: boolean sc - debug: msg="This will not be printed" - debug: msg="But this will" tags: [print_action] N( t constants( t CallbackBase( t to_text( t codeCodess [0mt normals [{0}mt oks [1mt bolds [1m[34mt not_so_boldt changedt failedt endct skippedc C` sz t | j � | j � � } i } xQ | D]I } | j | � | j | � k r) | j | � | j | � f | | <q) q) W| S( s= Return a dict of keys that differ with another config object.( t sett keyst get( t prvt nxtR t resultt k( ( sF /usr/lib/python2.7/site-packages/ansible/plugins/callback/selective.pyt dict_diff; s )c C` s) t r | Sd j t | | t d � Sd S( s8 Given a string add necessary codes to format the string.s {0}{1}{2}R N( t DONT_COLORIZEt formatt COLORS( t msgt color( ( sF /usr/lib/python2.7/site-packages/ansible/plugins/callback/selective.pyt colorizeE s t CallbackModulec B` s� e Z d Z d Z d Z d Z d d � Z d d d d � Z d d � Z d � Z d � Z d � Z d � Z d � Z e d � Z d � Z d � Z d � Z d � Z d � Z e Z RS( s selective.py callback plugin.g @t stdoutt selectivec C` s5 t t | � j | � t | _ d | _ t | _ d S( s selective.py callback plugin.N( t superR t __init__t Falset last_skippedt Nonet last_task_namet printed_last_task( t selft display( ( sF /usr/lib/python2.7/site-packages/ansible/plugins/callback/selective.pyR! T s c C` s8 t t | � j d | d | d | � | j d � a d S( Nt task_keyst var_optionst directt nocolor( R R t set_optionst get_optionR ( R'