??????????????
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ÕddlmZmZmZeZdZdZdZddl m Z m Z ddl mZddlmZddlmZdd lmZd Ze d ed ed edde ƒZdefd„ƒYZdS(i(tabsolute_importtdivisiontprint_functions lookup: sequence author: Jayson Vantuyl version_added: "1.0" short_description: generate a list based on a number sequence description: - generates a sequence of items. You can specify a start value, an end value, an optional "stride" value that specifies the number of steps to increment the sequence, and an optional printf-style format string. - 'Arguments can be specified as key=value pair strings or as a shortcut form of the arguments string is also accepted: [start-]end[/stride][:format].' - 'Numerical values can be specified in decimal, hexadecimal (0x3f8) or octal (0600).' - Starting at version 1.9.2, negative strides are allowed. - Generated items are strings. Use Jinja2 filters to convert items to preferred type, e.g. ``{{ 1 + item|int }}``. - See also Jinja2 ``range`` filter as an alternative. options: start: description: number at which to start the sequence default: 0 type: number end: description: number at which to end the sequence, dont use this with count type: number default: 0 count: description: number of elements in the sequence, this is not to be used with end type: number default: 0 stride: description: increments between sequence numbers, the default is 1 unless the end is less than the start, then it is -1. type: number format: description: return a string with the generated number formatted in sH - name: create some test users user: name: "{{ item }}" state: present groups: "evens" with_sequence: start=0 end=32 format=testuser%02x - name: create a series of directories with even numbers for some reason file: dest: "/var/stuff/{{ item }}" state: directory with_sequence: start=4 end=16 stride=2 - name: a simpler way to use the sequence plugin create 4 groups group: name: "group{{ item }}" state: present with_sequence: count=4 - name: the final countdown debug: msg={{item}} seconds to detonation with_sequence: end=0 start=10 s` _list: description: - A list containing generated sequence of items type: list (tcompilet IGNORECASE(t AnsibleError(txrange(tparse_kv(t LookupBases(0?x?[0-9a-f]+)s^(s-)?s(/s)?s (:(.+))?$t LookupModulecB`sDeZdZd„Zd„Zd„Zd„Zd„Zd„ZRS(s{ sequence lookup module Used to generate some sequence of items. Takes arguments in two forms. The simple / shortcut form is: [start-]end[/stride][:format] As indicated by the brackets: start, stride, and format string are all optional. The format string is in the style of printf. This can be used to pad with zeros, format in hexadecimal, etc. All of the numerical values can be specified in octal (i.e. 0664) or hexadecimal (i.e. 0x3f8). Negative numbers are not supported. Some examples: 5 -> ["1","2","3","4","5"] 5-8 -> ["5", "6", "7", "8"] 2-10/2 -> ["2", "4", "6", "8", "10"] 4:host%02d -> ["host01","host02","host03","host04"] The standard Ansible key-value form is accepted as well. For example: start=5 end=11 stride=2 format=0x%02x -> ["0x05","0x07","0x09","0x0a"] This format takes an alternate form of "end" called "count", which counts some number from the starting value. For example: count=5 -> ["1", "2", "3", "4", "5"] start=0x0f00 count=4 format=%04x -> ["0f00", "0f01", "0f02", "0f03"] start=0 count=5 stride=2 -> ["0", "2", "4", "6", "8"] start=1 count=5 stride=2 -> ["1", "3", "5", "7", "9"] The count option is mostly useful for avoiding off-by-one errors and errors calculating the number of entries in a sequence when a stride is specified. cC`s1d|_d|_d|_d|_d|_dS(sset sensible defaultsis%dN(tstarttNonetcounttendtstridetformat(tself((sC/usr/lib/python2.7/site-packages/ansible/plugins/lookup/sequence.pytreset†s     cC`sÒx‹ddddgD]w}yG|j|d ƒ}|d kr@wnt|dƒ}t|||ƒWqtk r‰td||fƒ‚qXqWd|kr¯|jdƒ|_n|rÎtd|jƒƒ‚nd S( sparse key-value style argumentsR R R Ris can't parse arg %s=%r as integerRs+unrecognized arguments to with_sequence: %rN(tpopR tinttsetattrt ValueErrorRRtkeys(Rtargstargtarg_rawt arg_cooked((sC/usr/lib/python2.7/site-packages/ansible/plugins/lookup/sequence.pyt parse_kv_argsŽs"   cC`sptj|ƒ}|stS|jƒ\}}}}}}}|dk r€yt|dƒ}Wq€tk r|td|ƒ‚q€Xn|dk rÆyt|dƒ}WqÆtk rÂtd|ƒ‚qÆXn|dk r yt|dƒ}Wq tk rtd|ƒ‚q Xn|dk r$||_n|dk r<||_ n|dk rT||_ n|dk rl||_ nt S(s+parse the shortcut forms, return True/Falseiscan't parse start=%s as integerscan't parse end=%s as integers can't parse stride=%s as integerN( tSHORTCUTtmatchtFalsetgroupsR RRRR R RRtTrue(RttermRt_R R RR((sC/usr/lib/python2.7/site-packages/ansible/plugins/lookup/sequence.pytparse_simple_args¤s8!              cC`sO|jdkr-|jdkr-tdƒ‚n|jdk rZ|jdk rZtdƒ‚nc|jdk r½|jdkr™|j|j|jd|_nd|_d|_d|_|`n|jdkrí|j|jkrítdƒ‚n|jdkr|j|jkrtdƒ‚n|jjdƒdkrKtd|jƒ‚ndS( Ns*must specify count or end in with_sequences1can't specify both count and end in with_sequenceiis'to count backwards make stride negatives+to count forward don't make stride negativet%sbad formatting string: %s(R R R RR RR(R((sC/usr/lib/python2.7/site-packages/ansible/plugins/lookup/sequence.pyt sanity_checkÇs"!    !!cc`s›|jdkrd}nd}t|j|j||jƒ}xW|D]O}y|j|}|VWqDttfk r’td||jfƒ‚qDXqDWdS(Niiiÿÿÿÿsproblem formatting %r with %r(RRR R RRt TypeErrorR(Rtadjusttnumberstit formatted((sC/usr/lib/python2.7/site-packages/ansible/plugins/lookup/sequence.pytgenerate_sequenceÜs    cK`sùg}xì|D]ä}y¥|jƒy)|j|ƒsH|jt|ƒƒnWn<tk r_‚n)tk r‡}td||fƒ‚nX|jƒ|jdkr·|j|j ƒƒnWq tk r΂q tk rð}td|ƒ‚q Xq W|S(Ns@unknown error parsing with_sequence arguments: %r. Error was: %sis%unknown error generating sequence: %s( RR#RRRt ExceptionR%RtextendR+(Rttermst variablestkwargstresultsR!te((sC/usr/lib/python2.7/site-packages/ansible/plugins/lookup/sequence.pytrunìs(     ( t__name__t __module__t__doc__RRR#R%R+R3(((sC/usr/lib/python2.7/site-packages/ansible/plugins/lookup/sequence.pyR _s%   #  N(t __future__RRRttypet __metaclass__t DOCUMENTATIONtEXAMPLEStRETURNtreRt re_compileRtansible.errorsRtansible.module_utils.six.movesRtansible.parsing.splitterRtansible.plugins.lookupRtNUMRR (((sC/usr/lib/python2.7/site-packages/ansible/plugins/lookup/sequence.pyts!