??????????????
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ΌddlmZmZmZeZdZdZddlZddl Z ddl m Z ddl m Z ddlmZmZddlmZmZdd lmZd e fd „ƒYZdS( i(tabsolute_importtdivisiontprint_functions" inventory: ini version_added: "2.4" short_description: Uses an Ansible INI file as inventory source. description: - INI file based inventory, sections are groups or group related with special `:modifiers`. - Entries in sections C([group_1]) are hosts, members of the group. - Hosts can have variables defined inline as key/value pairs separated by C(=). - The C(children) modifier indicates that the section contains groups. - The C(vars) modifier indicates that the section contains variables assigned to members of the group. - Anything found outside a section is considered an 'ungrouped' host. - Values passed in the INI format using the ``key=value`` syntax are interpreted differently depending on where they are declared within your inventory. - When declared inline with the host, INI values are processed by Python's ast.literal_eval function (U(https://docs.python.org/2/library/ast.html#ast.literal_eval)) and interpreted as Python literal structures (strings, numbers, tuples, lists, dicts, booleans, None). Host lines accept multiple C(key=value) parameters per line. Therefore they need a way to indicate that a space is part of a value rather than a separator. - When declared in a C(:vars) section, INI values are interpreted as strings. For example C(var=FALSE) would create a string equal to C(FALSE). Unlike host lines, C(:vars) sections accept only a single entry per line, so everything after the C(=) must be the value for the entry. - Do not rely on types set during definition, always make sure you specify type with a filter when needed when consuming the variable. - See the Examples for proper quoting to prevent changes to variable type. notes: - Whitelisted in configuration by default. - Consider switching to YAML format for inventory sources to avoid confusion on the actual type of a variable. The YAML inventory plugin processes variable values consistently and correctly. s” example1: | # example cfg file [web] host1 host2 ansible_port=222 # defined inline, interpreted as an integer [web:vars] http_port=8080 # all members of 'web' will inherit these myvar=23 # defined in a :vars section, interpreted as a string [web:children] # child groups will automatically add their hosts to parent group apache nginx [apache] tomcat1 tomcat2 myvar=34 # host specific vars override group vars tomcat3 mysecret="'03#pa33w0rd'" # proper quoting to prevent value changes [nginx] jenkins1 [nginx:vars] has_java = True # vars in child groups override same in parent [all:vars] has_java = False # 'all' is 'top' parent example2: | # other example config host1 # this is 'ungrouped' # both hosts have same IP but diff ports, also 'ungrouped' host2 ansible_host=127.0.0.1 ansible_port=44 host3 ansible_host=127.0.0.1 ansible_port=45 [g1] host4 [g2] host4 # same host as above, but member of 2 groups, will inherit vars from both # inventory hostnames are unique N(tto_safe_group_name(tBaseFileInventoryPlugin(t AnsibleErrortAnsibleParserError(tto_bytestto_text(t shlex_splittInventoryModulecB`s˜eZdZdZedƒZedƒZd„Zed„Z d„Z d „Z d „Z d „Z d „Zd „Zd„Zed„ƒZd„ZRS(s Takes an INI-format inventory file and builds a list of groups and subgroups with their associated hosts and variable settings. tiniu;u#t;t#cC`s)tt|ƒjƒi|_d|_dS(N(tsuperR t__init__tpatternstNonet _filename(tself((sA/usr/lib/python2.7/site-packages/ansible/plugins/inventory/ini.pyRas c C`sHtt|ƒj|||ƒ||_yύ|jrL|jj|ƒ\}}n6t|ddƒ}t|dƒ}|jƒ}WdQXyt |ddƒj ƒ} Wnpt k rg} xZ|j ƒD]H} | rπ| d|j krπ| j dƒqΑ| j t | ddƒƒqΑWnX|j|| ƒWntk rC} t| ƒ‚nXdS(Nterrorstsurrogate_or_stricttrbiu(RR tparseRtloadert_get_file_contentsRtopentreadRt splitlinest UnicodeErrortb_COMMENT_MARKERStappendt_parset ExceptionR( Rt inventoryRtpathtcachetb_datatprivatetb_pathtfhtdatatlinete((sA/usr/lib/python2.7/site-packages/ansible/plugins/inventory/ini.pyRhs&   !cC`s$td|j|jf|ƒ‚dS(Ns%s:%d: (RRtlineno(Rtmessage((sA/usr/lib/python2.7/site-packages/ansible/plugins/inventory/ini.pyt _raise_errorŒsc C`s¨|jƒi}d}d}d|_xε|D]έ}|jd7_|jƒ}| s,|d|jkrmq,n|jdj|ƒ}|rΆ|jƒ\}}t|ƒ}|p°d}|dkrξdj|jƒƒ}|j d ||fƒn||j jkrP|dkr=||kr=t d |jd |d |ƒ|||jdj|ƒ}|r)|jdƒS|jd|ƒdS(sŽ Takes a single line and tries to parse it as a group name. Returns the group name if successful, or raises an error. RNisExpected group name, got: %sN(RR=RXR.(RR*RO((sA/usr/lib/python2.7/site-packages/ansible/plugins/inventory/ini.pyRIs cC`sed|krPg|jddƒD]}|jƒ^q\}}||j|ƒfS|jd|ƒdS(s• Takes a string and tries to parse it as a variable definition. Returns the key and value if successful, or raises an error. t=isExpected key=value, got: %sN(tsplitR;t _parse_valueR.(RR*R+RSRT((sA/usr/lib/python2.7/site-packages/ansible/plugins/inventory/ini.pyRGs 1c C`sΟyt|dtƒ}Wn*tk rB}|jd||fƒnX|j|dƒ\}}i}x]|dD]Q}d|kr“|jd|ƒn|jddƒ\}} |j| ƒ||s-