??????????????
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@`sQddlmZmZmZeZidd6dgd6dd6ZdZd Zdd l Z dd l Z dd l m Z m Z mZdd lmZdd lmZi dd6dd6dd6dd6dd6dd6dd6dd6dd6d d!6Zd"„Zd#„Zd$„Zd%„Zed&„Zd'„Zd(„Zd)„Zed*krMeƒnd S(+i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust communityt supported_bysํ --- module: locale_gen short_description: Creates or removes locales description: - Manages locales by editing /etc/locale.gen and invoking locale-gen. version_added: "1.6" author: - Augustus Kling (@AugustusKling) options: name: description: - Name and encoding of the locale, such as "en_GB.UTF-8". required: true state: description: - Whether the locale shall be present. choices: [ absent, present ] default: present sW - name: Ensure a locale exists locale_gen: name: de_CH.UTF-8 state: present N(tPopentPIPEtcall(t AnsibleModule(t to_natives.UTF-8s.utf8s.EUC-JPs.eucjps .ISO-8859-15s .iso885915s.CP1251s.cp1251s.KOI8-Rs.koi8rs .ARMSCII-8s .armscii8s.EUC-KRs.euckrs.GBKs.gbks.GB18030s.gb18030s.EUC-TWs.euctwcC`sŒ|rd}d}n d}d}tj|ƒ}t|dƒ}x<|D]4}|j|ƒ}|rF|jdƒ|krFtSqFW|jƒtS(sอCheck if the given locale is available on the system. This is done by checking either : * if the locale is present in /etc/locales.gen * or if the locale is present in /usr/share/i18n/SUPPORTEDs)^(?P\S+_\S+) (?P\S+)\s*$s/usr/share/i18n/SUPPORTEDs2^#{0,1}\s*(?P\S+_\S+) (?P\S+)\s*$s/etc/locale.gentrtlocale(tretcompiletopentmatchtgrouptTruetclosetFalse(tnamet ubuntuModet__regexpt__locales_availablet re_compiledtfdtlinetresult((sE/usr/lib/python2.7/site-packages/ansible/modules/system/locale_gen.pyt is_availableBs   c`sNtddgdtƒjƒd}t|ƒ}t‡fd†|jƒDƒƒS(s2Checks if the given locale is currently installed.Rs-atstdoutic3`s'|]}tˆƒt|ƒkVqdS(N(tfix_case(t.0R(R(sE/usr/lib/python2.7/site-packages/ansible/modules/system/locale_gen.pys \s(RR t communicateR tanyt splitlines(Rtoutput((RsE/usr/lib/python2.7/site-packages/ansible/modules/system/locale_gen.pyt is_presentXs" cC`s3x,tjƒD]\}}|j||ƒ}q W|S(sˆlocale -a might return the encoding in either lower or upper case. Passing through this function makes them uniform for comparisons.(tLOCALE_NORMALIZATIONtitemstreplace(RtsR ((sE/usr/lib/python2.7/site-packages/ansible/modules/system/locale_gen.pyR!_scC`sz8tddƒ}g|D]}|j||ƒ^q}Wd|jƒXz)tddƒ}|jdj|ƒƒWd|jƒXdS(s!Replaces lines in /etc/locale.gens/etc/locale.genR Ntwt(RR*Rtwritetjoin(t existing_linetnew_linetfRtlines((sE/usr/lib/python2.7/site-packages/ansible/modules/system/locale_gen.pyt replace_linegs) cC`sซd|}|rd|}n d|}z;tddƒ}g|D]}tj|||ƒ^q@}Wd|jƒXz)tddƒ}|jdj|ƒƒWd|jƒXdS( s4 Sets the state of the locale. Defaults to enabled. s#{0,1}\s*%s (?P.+)s%s \gs# %s \gs/etc/locale.genR NR,R-(RRtsubRR.R/(Rtenabledt search_stringt new_stringR2RR3((sE/usr/lib/python2.7/site-packages/ansible/modules/system/locale_gen.pyt set_localeus   , cC`sg|dkrt|dtƒnt|dtƒtdƒ}|dkrct|dt|ƒƒ‚ndS(sชCreate or remove locale. Keyword arguments: targetState -- Desired state, either present or absent. name -- Name including encoding such as de_CH.UTF-8. tpresentR6s locale-genis*locale.gen failed to execute, it returned N(R9RRR tEnvironmentErrortstr(t targetStateRtlocaleGenExitValue((sE/usr/lib/python2.7/site-packages/ansible/modules/system/locale_gen.pyt apply_changeˆs    cC`s๏|dkr!td|gƒ}nขztddƒ}|jƒ}Wd|jƒXzUtddƒ}x?|D]7}|jdƒ\}}||krg|j|ƒqgqgWWd|jƒXtddgƒ}|d kr๋t|d t|ƒƒ‚ndS( sชCreate or remove locale. Keyword arguments: targetState -- Desired state, either present or absent. name -- Name including encoding such as de_CH.UTF-8. R:s locale-gens"/var/lib/locales/supported.d/localR NR,t s--purgeis*locale.gen failed to execute, it returned (R Rt readlinesRtsplitR.R;R<(R=RR>R2tcontentRRtcharset((sE/usr/lib/python2.7/site-packages/ansible/modules/system/locale_gen.pytapply_change_ubuntu›s       cC`sžtdtdtdddtƒdtddddd d dgƒƒd tƒ}|jd}|jd}tjjd ƒsจtjjd ƒr•t}qฎ|jddƒnt}t ||ƒsะ|jddƒnt |ƒrๅd}nd }||k}|j r|j d|ƒn‡|r~y-|tkr8t ||ƒn t||ƒWq~tk rz}|jdt|ƒd|jƒq~Xn|j d|d|ddƒdS(Nt argument_specRttypeR<trequiredtstatetdefaultR:tchoicestabsenttsupports_check_modes/etc/locale.gens/var/lib/locales/supported.d/tmsgsg/etc/locale.gen and /var/lib/locales/supported.d/local are missing. Is the package "locales" installed?s:The locale you've entered is not available on your system.tchangedt exitValuetOK(R tdictRtparamstostpathtexistst fail_jsonRRR't check_modet exit_jsonR?RER;R terrno(tmoduleRRIRt prev_stateROte((sE/usr/lib/python2.7/site-packages/ansible/modules/system/locale_gen.pytmainฝs8$         &t__main__(t __future__RRRRGt __metaclass__tANSIBLE_METADATAt DOCUMENTATIONtEXAMPLESRTRt subprocessRR R tansible.module_utils.basicR tansible.module_utils._textR R(RR'R!R4RR9R?RER^t__name__(((sE/usr/lib/python2.7/site-packages/ansible/modules/system/locale_gen.pyts@             " /