??????????????
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 Zd Z dd l Z dd l Z dd l Z dd l Z dd lZdd lZdd lZdd lmZmZmZdd lmZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZd„Ze dkr‹eƒnd S(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust communityt supported_bysÞ --- module: timezone short_description: Configure timezone setting description: - This module configures the timezone setting, both of the system clock and of the hardware clock. If you want to set up the NTP, use M(service) module. - It is recommended to restart C(crond) after changing the timezone, otherwise the jobs may run at the wrong time. - Several different tools are used depending on the OS/Distribution involved. For Linux it can use C(timedatectl) or edit C(/etc/sysconfig/clock) or C(/etc/timezone) and C(hwclock). On SmartOS, C(sm-set-timezone), for macOS, C(systemsetup), for BSD, C(/etc/localtime) is modified. On AIX, C(chtz) is used. - As of Ansible 2.3 support was added for SmartOS and BSDs. - As of Ansible 2.4 support was added for macOS. - As of Ansible 2.9 support was added for AIX 6.1+ - Windows and HPUX are not supported, please let us know if you find any other OS/distro in which this fails. version_added: "2.2" options: name: description: - Name of the timezone for the system clock. - Default is to keep current setting. - B(At least one of name and hwclock are required.) type: str hwclock: description: - Whether the hardware clock is in UTC or in local timezone. - Default is to keep current setting. - Note that this option is recommended not to change and may fail to configure, especially on virtual environments such as AWS. - B(At least one of name and hwclock are required.) - I(Only used on Linux.) type: str aliases: [ rtc ] choices: [ local, UTC ] notes: - On SmartOS the C(sm-set-timezone) utility (part of the smtools package) is required to set the zone timezone - On AIX only Olson/tz database timezones are useable (POSIX is not supported). - An OS reboot is also required on AIX for the new timezone setting to take effect. author: - Shinichi TAMURA (@tmshn) - Jasper Lievisse Adriaanse (@jasperla) - Indrajit Raychaudhuri (@indrajitr) s diff: description: The differences about the given arguments. returned: success type: complex contains: before: description: The values before change type: dict after: description: The values after change type: dict sE - name: Set timezone to Asia/Tokyo timezone: name: Asia/Tokyo N(t AnsibleModulet get_platformtget_distribution(t iteritemstTimezonecB`sneZdZd„Zd„Zd„Zd„Zddd„Zd„Zd „Z d „Z d „Z d „Z RS( s(This is a generic Timezone manipulation class that is subclassed based on platform. A subclass may wish to override the following action methods: - get(key, phase) ... get the value from the system at `phase` - set(key, value) ... set the value to the current system c C`stƒdkr§|jdƒ}|dk rŽ|j|ƒ\}}}|dkrdtttƒjtƒS|jd|ƒttt ƒjt ƒSqttt ƒjt ƒSnnt j dt j ƒƒr<|jdƒ}|dk r&|j|ƒ\}}}|dkr&|jƒdkr&|jdd ƒq&ntttƒjtƒSt j d t j ƒƒrjtttƒjtƒSt j d t j ƒƒr˜tttƒjtƒSt jƒd krÿtt j ƒt jƒƒ}|d krètttƒjtƒS|jdd|ƒntttƒjtƒSdS(sýReturn the platform-specific subclass. It does not use load_platform_subclass() because it needs to judge based on whether the `timedatectl` command exists and is available. Args: module: The AnsibleModule. tLinuxt timedatectlisEtimedatectl command was found but not usable: %s. using other method.s ^joyent_.*Ztzonenametglobaltmsgs2Adjusting timezone is not supported in Global Zones^Darwins^(Free|Net|Open)BSDtAIXi=s<AIX os level must be >= 61 for timezone module (Target: %s).N(R t get_bin_pathtNonet run_commandtsuperR tSystemdTimezonet__new__twarntNosystemdTimezonetretmatchtplatformtversiontstript fail_jsontSmartOSTimezonetDarwinTimezonet BSDTimezonetsystemtinttreleaset AIXTimezone( tclstmoduleRtrctstdouttstderrt zonename_cmdt_t AIXoslevel((sC/usr/lib/python2.7/site-packages/ansible/modules/system/timezone.pyRbs4     cC`s{tt|ƒjƒg|_tƒ|_xC|jD]8}|j|}|dk r2td|ƒ|j|tried to configure %s using a file "%s", but could not read itiNiÿÿÿÿtwsBtried to configure %s using a file "%s", but could not write to its)Added 1 line and deleted %s line(s) on %s( RtRuRvR=t readlinesRzt enumerateRaR9R8tinsertt writelinesR( R6tfilenametregexpR3R7tfileR|tlinestmatched_indicestitlinet insert_line((sC/usr/lib/python2.7/site-packages/ansible/modules/system/timezone.pyt _edit_file­s2         cC`s–|j|}yt|ddƒ}Wnotk r”}|j||ƒrz|dkrWdS|dkrgdS|dkr‘dSq’|jd||fƒnþX|jƒ}|jƒy#|j|j|ƒj d ƒ}Wngt k r7|dkrîdS|dkrþdS|dkr’|d krdS|jd ||fƒq’n[X|dkrh|j j |ƒr_d}q’d }n*|dkr’|dkr’|j ƒ}q’n|S( NtmodeRnR[sn/aRiR_RQs>tried to configure %s using a file "%s", but could not read itiRHsOtried to configure %s using a file "%s", but could not find a valid value in itR^(RqRtRuRvR=RyRzR`RaRbtAttributeErrorR)Rctlower(R6R7RMR‡R‰R|RR3((sC/usr/lib/python2.7/site-packages/ansible/modules/system/timezone.pyt_get_value_from_configÛsB      #          cC`sU|j|d}|dkrS|j||ƒ}||krQ|jd|ƒ}qQnþ|dkr@|j||ƒ}||krQtjjdƒrtjjdƒrþtjdƒ}tjd|tj ƒ}|rõ|j dƒ}||krû|}qûqd}q:d}q=yt j dd |ƒs$dSWq=t k r9dSXqQn|jd |ƒ|S( NR0R[RiRQs/etc/localtimes/usr/share/zoneinfo/(.*)isn/as/usr/share/zoneinfo/sunknown parameter "%s"(R3R“RRRSRstexiststreadlinkRRaRhRbtfilecmptcmpt ExceptionR=(R6R7RMR0R3RStlinktzt valuelink((sC/usr/lib/python2.7/site-packages/ansible/modules/system/timezone.pyRB s2          c C`s\|jd|jdd|jdd|j|ddƒx|jD]}|j|ƒqAWdS(NR‡RQRˆR3R7(RRqR`RrRoRG(R6R3tcmd((sC/usr/lib/python2.7/site-packages/ansible/modules/system/timezone.pyt set_timezone7s   c C`s‘|dkrd}d}n d}d}|jddk rq|jd|jdd|jdd d |d dƒn|j|jd |d tƒdS(NR^s --localtimeRes--utcRdR[R‡RˆR3sUTC=%s R7s --systohcR@(RqRRR`RGRpRA(R6R3toptiontutc((sC/usr/lib/python2.7/site-packages/ansible/modules/system/timezone.pyt set_hwclock?s     cC`sM|dkr|j|ƒn-|dkr8|j|ƒn|jd|ƒdS(NRQR[sunknown parameter "%s"(RœRŸR=(R6R7R3((sC/usr/lib/python2.7/site-packages/ansible/modules/system/timezone.pyROMs   N(RXRYRZR2RRqRARRRgRhR`RwRxR1RvRR“RBRœRŸRO(((sC/usr/lib/python2.7/site-packages/ansible/modules/system/timezone.pyR>s6    > . / -  R!cB`s)eZdZd„Zd„Zd„ZRS(sThis is a Timezone manipulation class for SmartOS instances. It uses the C(sm-set-timezone) utility to set the timezone, and inspects C(/etc/default/init) to determine the current timezone. NB: A zone needs to be rebooted in order for the change to be activated. cC`sQtt|ƒj|ƒ|jjddtƒ|_|jsM|jddƒndS(Nssm-set-timezoneR\RsFsm-set-timezone not found. Make sure the smtools package is installed.(RR!R1R)RRCt settimezoneR (R6R)((sC/usr/lib/python2.7/site-packages/ansible/modules/system/timezone.pyR1`s cC`s¡|dkr†yPtddƒ}x:|D]2}tjd|jƒƒ}|r%|jƒdSq%WWqtk r‚|jjddƒqXn|jjdd|ƒd S( sLookup the current timezone name in `/etc/default/init`. If anything else is requested, or if the TZ field is not set we fail. RQs/etc/default/initRns ^TZ=(.*)$iRs Failed to read /etc/default/inits/%s is not a supported option on target platformN(RtRRRtgroupsR˜R)R (R6R7RMR{Rtm((sC/usr/lib/python2.7/site-packages/ansible/modules/system/timezone.pyRBfs   cC`sÃ|dkr¨d|}|jj|ƒ\}}}|dkrS|jjd|ƒntjd||jƒdƒ}|oŒ|jƒd|ks¿|jjddƒq¿n|jjdd |ƒd S( s¢Set the requested timezone through sm-set-timezone, an invalid timezone name will be rejected and we have no further input validation to perform. RQssm-set-timezone %siRs'^\* Changed (to)? timezone (to)? (%s).*iiÿÿÿÿsFailed to set timezones/%s is not a supported option on target platformN(R)RR RRt splitlinesR¡(R6R7R3R›R*R+R,R¢((sC/usr/lib/python2.7/site-packages/ansible/modules/system/timezone.pyROvs    (RXRYRZR1RBRO(((sC/usr/lib/python2.7/site-packages/ansible/modules/system/timezone.pyR!Vs  R"cB`sYeZdZedejdejƒƒZd„Zd„Z d„Z d„Z d„Z RS(s©This is the timezone implementation for Darwin which, unlike other *BSD implementations, uses the `systemsetup` command on Darwin to check/set the timezone. RQs^\s*Time ?Zone\s*:\s*([^\s]+)cC`sZtt|ƒj|ƒ|jddtƒ|_tƒ|_d|jkrV|j ƒndS(Nt systemsetupR\RQ( RR"R1RRAR¤R2RR3RW(R6R)((sC/usr/lib/python2.7/site-packages/ansible/modules/system/timezone.pyR1•s  cC`s9||jkr.|j|jdƒ|j|¨ss$given timezone "%s" is not available(R3RGR¤R£tlisttmapR=(R6RUtoutttz_list((sC/usr/lib/python2.7/site-packages/ansible/modules/system/timezone.pyRW£s  cC`sY|dkr>|j|ƒ}|j|j|ƒjdƒ}|S|jjdd|ƒdS(NRQiRs/%s is not a supported option on target platform(R¥R`RaRbR)R (R6R7RMRR3((sC/usr/lib/python2.7/site-packages/ansible/modules/system/timezone.pyRB­s  cC`sF|dkr+|j|jd|dtƒn|jjdd|ƒdS(NRQs -settimezoneR@Rs/%s is not a supported option on target platform(RGR¤RAR)R (R6R7R3((sC/usr/lib/python2.7/site-packages/ansible/modules/system/timezone.pyROµs ( RXRYRZR2RRgRhR`R1R¥RWRBRO(((sC/usr/lib/python2.7/site-packages/ansible/modules/system/timezone.pyR"‹s   R#cB`s2eZdZd„Zd„Zd„Zd„ZRS(s¹This is the timezone implementation for *BSD which works simply through updating the `/etc/localtime` symlink to point to a valid timezone name under `/usr/share/zoneinfo`. cC`stt|ƒj|ƒdS(N(RR#R1(R6R)((sC/usr/lib/python2.7/site-packages/ansible/modules/system/timezone.pyR1ÂscC`s$d}d}tjj|ƒs2|jjdƒdS|}xK|j|ƒsuytj|ƒ}Wq;tk rqPq;Xq;W|j|dƒSx‡t tj |ƒƒD]p\}}}x^t |ƒD]P}tjj ||ƒ}tjj |ƒ r¸t j||ƒr¸|j|dƒSq¸WqœW|jjdƒdS(Ns/usr/share/zoneinfo/s/etc/localtimes,Could not read /etc/localtime. Assuming UTC.R_tsCCould not identify timezone name from /etc/localtime. Assuming UTC.(RRRSR”R)Rt startswithR•tOSErrortreplacetsortedtwalkR;RsR–R—(R6t zoneinfo_dirtlocaltime_filet zoneinfo_filetdnameR.tfnamestfname((sC/usr/lib/python2.7/site-packages/ansible/modules/system/timezone.pyt__get_timezoneÅs&  %%cC`s1|dkr|jƒS|jjdd|ƒdS(s:Lookup the current timezone by resolving `/etc/localtime`.RQRs/%s is not a supported option on target platformN(t_BSDTimezone__get_timezoneR)R (R6R7RM((sC/usr/lib/python2.7/site-packages/ansible/modules/system/timezone.pyRBés  cC`s/|dkrd|}y0tjj|ƒsE|jjdd|ƒnWn(tk rp|jjdd|ƒnXdjgtddƒD]}tj t j t j ƒ^q‡ƒ}d |}y$tj ||ƒtj|d ƒWq+tk rtj|ƒ|jjdd ƒq+Xn|jjdd |ƒdS( NRQs/usr/share/zoneinfo/Rs%s is not a recognized timezonesFailed to stat %sR¬ii s/etc/localtime.s/etc/localtimesCould not update /etc/localtimes/%s is not a supported option on target platform(RRRSRTR)R R˜R;trangetrandomtchoicetstringt ascii_letterstdigitstsymlinktrenametremove(R6R7R3tzonefileR¦tsuffixt new_localtime((sC/usr/lib/python2.7/site-packages/ansible/modules/system/timezone.pyROðs    >   (RXRYRZR1R¹RBRO(((sC/usr/lib/python2.7/site-packages/ansible/modules/system/timezone.pyR#¼s   $ R'cB`s2eZdZd„Zd„Zd„Zd„ZRS(sÞThis is a Timezone manipulation class for AIX instances. It uses the C(chtz) utility to set the timezone, and inspects C(/etc/environment) to determine the current timezone. While AIX time zones can be set using two formats (POSIX and Olson) the prefered method is Olson. See the following article for more information: https://developer.ibm.com/articles/au-aix-posix/ NB: AIX needs to be rebooted in order for the change to be activated. cC`s5tt|ƒj|ƒ|jjddtƒ|_dS(NtchtzR\(RR'R1R)RRAR (R6R)((sC/usr/lib/python2.7/site-packages/ansible/modules/system/timezone.pyR1scC`sƒy)tddƒ}|jƒ}|jƒWn$tk rO|jjddƒnXtjd|tjƒ}|r{|j dƒSdSdS(s5 Return the current value of TZ= in /etc/environment s/etc/environmentRnRs*Issue reading contents of /etc/environments ^TZ=(.*)$iN( RtRyRzR˜R)R RRaRhRbR(R6R{tetcenvironmentR((sC/usr/lib/python2.7/site-packages/ansible/modules/system/timezone.pyR¸ s   cC`s1|dkr|jƒS|jjdd|ƒdS(sŽLookup the current timezone name in `/etc/environment`. If anything else is requested, or if the TZ field is not set we fail. RQRs/%s is not a supported option on target platformN(t_AIXTimezone__get_timezoneR)R (R6R7RM((sC/usr/lib/python2.7/site-packages/ansible/modules/system/timezone.pyRB/s  c C`s|dkrùd|}y0tjj|ƒsE|jjdd|ƒnWn(tk rp|jjdd|ƒnXd|}|jj|ƒ\}}}|dkr¸|jjd|ƒn|jƒ}||krd||f} |jjd| ƒqn|jjdd |ƒd S( s—Set the requested timezone through chtz, an invalid timezone name will be rejected and we have no further input validation to perform. RQs/usr/share/lib/zoneinfo/Rs %s is not a recognized timezone.sFailed to check %s.schtz %sis?TZ value does not match post-change (Actual: %s, Expected: %s).s/%s is not a supported option on target platformN(RRRSRTR)R R˜RRÈ( R6R7R3RÃR›R*R+R,tTZR((sC/usr/lib/python2.7/site-packages/ansible/modules/system/timezone.pyRO8s        (RXRYRZR1RÈRBRO(((sC/usr/lib/python2.7/site-packages/ansible/modules/system/timezone.pyR' s     c C`s‘tdtdtdddddgdd gƒd tddƒƒd dd ggd tƒ}t|ƒ}|jd dƒ|jr§|jddƒ}|jdƒ|ds6   ,       ²2ÿ51QX '