??????????????
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@`sddlmZmZmZeZidd6dgd6dd6ZdZd Zdd l Z dd l Z dd l Z dd l Z dd l Z dd lZdd lZdd lmZdd lmZd efd„ƒYZdefd„ƒYZd„Zedkr eƒnd S(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust communityt supported_bys` --- module: cronvar short_description: Manage variables in crontabs description: - Use this module to manage crontab variables. - This module allows you to create, update, or delete cron variable definitions. version_added: "2.0" options: name: description: - Name of the crontab variable. type: str required: yes value: description: - The value to set this variable to. - Required if C(state=present). type: str insertafter: description: - If specified, the variable will be inserted after the variable specified. - Used with C(state=present). type: str insertbefore: description: - Used with C(state=present). If specified, the variable will be inserted just before the variable specified. type: str state: description: - Whether to ensure that the variable is present or absent. type: str choices: [ absent, present ] default: present user: description: - The specific user whose crontab should be modified. - This parameter defaults to C(root) when unset. type: str cron_file: description: - If specified, uses this file instead of an individual user's crontab. - Without a leading C(/), this is assumed to be in I(/etc/cron.d). - With a leading C(/), this is taken as absolute. type: str backup: description: - If set, create a backup of the crontab before it is modified. The location of the backup is returned in the C(backup) variable by this module. type: bool default: no requirements: - cron author: - Doug Luce (@dougluce) s® - name: Ensure entry like "EMAIL=doug@ansibmod.con.com" exists cronvar: name: EMAIL value: doug@ansibmod.con.com - name: Ensure a variable does not exist. This may remove any variable named "LEGACY" cronvar: name: LEGACY state: absent - name: Add a variable to a file under /etc/cron.d cronvar: name: LOGFILE value: /var/log/yum-autoupdate.log user: root cron_file: ansible_yum-autoupdate N(t AnsibleModule(t shlex_quotet CronVarErrorcB`seZRS((t__name__t __module__(((sB/usr/lib/python2.7/site-packages/ansible/modules/system/cronvar.pyR pstCronVarcB`s˜eZdZddd„Zd„Zd„Zdd„Zd„Zd„Z d„Z d„Z d „Z d „Z ed „Zd „Zd „Zd„ZRS(s® CronVar object to write variables to crontabs. user - the user of the crontab (defaults to root) cron_file - a cron file under /etc/cron.d cC`s·||_||_d|_djd„tdƒDƒƒ|_|jjddtƒ|_ |r d|_ t j j |ƒr…||_ q©t j jd|ƒ|_ n d|_ |jƒdS(Ntcs`s-|]#}t|ƒdkrt|ƒVqdS(t=t't"N(RRR(tchr(t.0tx((sB/usr/lib/python2.7/site-packages/ansible/modules/system/cronvar.pys €si€tcrontabtrequireds /etc/cron.d(tmoduletusertNonetlinestjointranget wordcharst get_bin_pathtTruetcron_cmdt cron_filetostpathtisabstread(tselfRRR!((sB/usr/lib/python2.7/site-packages/ansible/modules/system/cronvar.pyt__init__|s   "   cC`s_g|_|jrˆy5t|jdƒ}|jƒjƒ|_|jƒWq[tk r[dStk r„tdt j ƒdƒ‚q[XnÓ|j j |j ƒdtƒ\}}}|dkrÖ|dkrÖtdƒ‚n|jƒ}d}xp|D]h}|dks:tjd|ƒ rMtjd |ƒ rMtjd |ƒ rM|jj|ƒn|d7}qïWdS( NtrsUnexpected error:ituse_unsafe_shellisUnable to read crontabis8# DO NOT EDIT THIS FILE - edit the master and reinstall.s# \(/tmp/.*installed on.*\)s# \(.*version.*\)(RR!topenR%t splitlinestclosetIOErrort ExceptionR tsystexc_infoRt run_commandt_read_user_executeRtretmatchtappend(R&tftrctoutterrRtcounttl((sB/usr/lib/python2.7/site-packages/ansible/modules/system/cronvar.pyR%Žs(     '  &cC`s|jjd|ƒdS(Ns ansible: "%s"(Rtdebug(R&tmessage((sB/usr/lib/python2.7/site-packages/ansible/modules/system/cronvar.pyt log_message«scC`sð|rt|dƒ}nH|jr6t|jdƒ}n*tjddƒ\}}tj|dƒ}|j|jƒƒ|jƒ|r‡dS|jsì|j j |j |ƒdt ƒ\}}}tj |ƒ|dkrì|j jd|ƒqìndS(sI Write the crontab to the system. Saves all information. twtprefixRNR)itmsg(R*R!ttempfiletmkstempR"tfdopentwritetrenderR,RR1t_write_executeRtunlinkt fail_json(R&t backup_filetfilehtfiledR#R7R8R9((sB/usr/lib/python2.7/site-packages/ansible/modules/system/cronvar.pyRE®s   *  cC`sZytj|jƒtSWn;tk r,tStk rUtdtj ƒdƒ‚nXdS(NsUnexpected error:i( R"RHR!RtOSErrortFalseR.R R/R0(R&((sB/usr/lib/python2.7/site-packages/ansible/modules/system/cronvar.pytremove_variable_fileÊs  cC`shtj|ƒ}|j|_|jƒ}|jƒdk}dj|ƒ}|rX||fStdƒ‚dS(NRRsNot a variable.(tshlexRt get_tokenRR (R&tlinetlexertvarnamet is_env_vartvalue((sB/usr/lib/python2.7/site-packages/ansible/modules/system/cronvar.pyt parse_for_varÔs   cC`sUxN|jD]C}y)|j|ƒ\}}||kr8|SWq tk rLq Xq WdS(N(RRWR R(R&tnameR;RTRV((sB/usr/lib/python2.7/site-packages/ansible/modules/system/cronvar.pyt find_variableÞs  cC`sXg}xK|jD]@}y&|j|ƒ\}}|j|ƒWqtk rOqXqW|S(N(RRWR5R (R&t var_namesR;tvar_namet_((sB/usr/lib/python2.7/site-packages/ansible/modules/system/cronvar.pyt get_var_namesès c C`s|dkr8|dkr8|jjdd||fƒnÉg}x·|jD]¬}y…|j|ƒ\}}||kr™|jd||fƒ|j|ƒn9||krÌ|j|ƒ|jd||fƒnt‚WqHtk ró|j|ƒqHXqHW||_dS(Nis%s=%s(RRtinsertRWR5R ( R&RXRVt insertbeforet insertaftertnewlinesR;RTR\((sB/usr/lib/python2.7/site-packages/ansible/modules/system/cronvar.pyt add_variableòs       cC`s|j|ddtƒdS(Ntremove(tupdate_variableRR(R&RX((sB/usr/lib/python2.7/site-packages/ansible/modules/system/cronvar.pytremove_variablescC`s–g}x€|jD]u}yN|j|ƒ\}}||krCt‚n|sc|jd||fƒnWqtk r„|j|ƒqXqW||_dS(Ns%s=%s(RRWR R5(R&RXRVRcRaR;RTR\((sB/usr/lib/python2.7/site-packages/ansible/modules/system/cronvar.pyRd s   cC`s9dj|jƒ}|r5|ddkr5|d7}n|S(s) Render a proper crontab s iÿÿÿÿs (s s (RR(R&tresult((sB/usr/lib/python2.7/site-packages/ansible/modules/system/cronvar.pyRFs cC`sñd}|jrÝtjƒdkrAdt|jƒt|jƒfStjƒdkrsdt|jƒt|jƒfStjƒdkr¢d|jdt|jƒfStjtjƒƒd |jkrÝd t|jƒ}qÝnd|j|dfS( s@ Returns the command line for reading a crontab RtSunOSssu %s -c '%s -l'tAIXs%s -l %ssHP-UXs%s %s %ss-lis-u %s( RtplatformtsystemR R tpwdtgetpwuidR"tgetuid(R&R((sB/usr/lib/python2.7/site-packages/ansible/modules/system/cronvar.pyR2"s   "cC`s®d}|jr”tjƒd krYdt|jƒt|ƒt|jƒ|jt|ƒfStjtjƒƒd|jkr”dt|jƒ}q”nd|j|t|ƒfS( s? Return the command line for writing a crontab RRgsHP-UXRhs chown %s %s ; su '%s' -c '%s %s'is-u %ss%s %s %s(sSunOSsHP-UXsAIX( RRiRjR R RkRlR"Rm(R&R#R((sB/usr/lib/python2.7/site-packages/ansible/modules/system/cronvar.pyRG3s 5"N(R R t__doc__RR'R%R>RERORWRYR]RbReRNRdRFR2RG(((sB/usr/lib/python2.7/site-packages/ansible/modules/system/cronvar.pyR ts       cC`s]tdtdtdddtƒdtddƒdtddƒdtddƒd tddƒd tddƒd tddd d ddd gƒdtddd tƒƒdd d ggdtƒ}|jd}|jd}|jd}|jd}|jd }|jd }|jd }|jd}|d k} t} tƒ} tjtddƒƒt|||ƒ} |j d|ƒ|dkrž| rž|j ddƒn|dkrÃ| rÃ|j ddƒn|dkré| ré|j ddƒn|rt j ddƒ\} }| j|ƒn| jrY| rY| rY| jƒ} |jd| d|d |ƒn| j|ƒ}| rÁ|dkr™| j||||ƒt} qã||krã| j||ƒt} qãn"|dk rã| j|ƒt} ni| jƒd6| d6} | r| jƒn|r9| r)|| ds(   :       Ï h