AnonSec Shell
Server IP : 85.193.89.191  /  Your IP : 3.144.85.61
Web Server : Apache
System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User : bitrix ( 600)
PHP Version : 8.1.27
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python2.7/site-packages/ansible/plugins/inventory/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /lib/python2.7/site-packages/ansible/plugins/inventory/host_list.pyc
�
��\c@`s�ddlmZmZmZeZdZdZddlZddl	m
Z
mZddlm
Z
mZddlmZddlmZd	efd
��YZdS(i(tabsolute_importtdivisiontprint_functions 
    inventory: host_list
    version_added: "2.4"
    short_description: Parses a 'host list' string
    description:
        - Parses a host list string as a comma separated values of hosts
        - This plugin only applies to inventory strings that are not paths and contain a comma.
s
    # define 2 hosts in command line
    # ansible -i '10.10.2.6, 10.10.2.4' -m ping all

    # DNS resolvable names
    # ansible -i 'host1.example.com, host2' -m user -a 'name=me state=absent' all

    # just use localhost
    # ansible-playbook -i 'localhost,' play.yml -c local
N(tAnsibleErrortAnsibleParserError(tto_bytest	to_native(t
parse_address(tBaseInventoryPlugintInventoryModulecB`s#eZdZd�Zed�ZRS(t	host_listcC`sDt}t|dd�}tjj|�r@d|kr@t}n|S(Nterrorstsurrogate_or_strictt,(tFalseRtostpathtexiststTrue(tselfR
tvalidtb_path((sG/usr/lib/python2.7/site-packages/ansible/plugins/inventory/host_list.pytverify_file's
	c	C`stt|�j|||�y�x�|jd�D]�}|j�}|r/yt|dt�\}}Wn9tk
r�}|jj	dt
|��|}d}nX||jj
kr�|jj|ddd|�q�q/q/WWn)tk
r}tdt
|���nXdS(	s parses the inventory file R
tallow_rangess<Unable to parse address from hostname, leaving unchanged: %stgroupt	ungroupedtports-Invalid data from string, could not parse: %sN(tsuperR	tparsetsplittstripRRRtdisplaytvvvRtNonet	inventorythoststadd_hostt	ExceptionR(	RR"tloaderR
tcacheththostRte((sG/usr/lib/python2.7/site-packages/ansible/plugins/inventory/host_list.pyR/s
*(t__name__t
__module__tNAMERRR(((sG/usr/lib/python2.7/site-packages/ansible/plugins/inventory/host_list.pyR	#s	(t
__future__RRRttypet
__metaclass__t
DOCUMENTATIONtEXAMPLESRtansible.errorsRRtansible.module_utils._textRRtansible.parsing.utils.addressesRtansible.plugins.inventoryRR	(((sG/usr/lib/python2.7/site-packages/ansible/plugins/inventory/host_list.pyt<module>s	

Anon7 - 2022
AnonSec Team