??????????????
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@`saddlmZmZmZeZdZdZddlZddl m Z ddl m Z m Z ddlmZmZddlmZdd lmZmZmZdd lmZyddlZddlZWnek re d nXeZidd6dd6dd6dd6dd6dd6ZiLdd6dd6dd6dd"6dd$6dd&6dd(6dd*6dd,6dd.6dd06dd26dd56dd76dd96dd;6dd>6dd@6ddB6ddD6ddE6ddG6ddI6ddK6ddM6ddO6ddQ6ddT6ddW6ddZ6dd\6dd]6dd^6dda6ddc6ddf6ddg6ddi6ddj6ddk6ddl6ddm6ddo6ddp6ddq6ddt6ddv6ddx6ddy6dd{6dd|6dd}6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6dd6ZdeeefdYZdS(i(tabsolute_importtdivisiontprint_functions name: aws_ec2 plugin_type: inventory short_description: EC2 inventory source requirements: - boto3 - botocore extends_documentation_fragment: - inventory_cache - constructed - aws_credentials description: - Get inventory hosts from Amazon Web Services EC2. - Uses a YAML configuration file that ends with C(aws_ec2.(yml|yaml)). notes: - If no credentials are provided and the control node has an associated IAM instance profile then the role will be used for authentication. author: - Sloane Hertel (@s-hertel) options: plugin: description: Token that ensures this is a source file for the plugin. required: True choices: ['aws_ec2'] iam_role_arn: description: The ARN of the IAM role to assume to perform the inventory lookup. You should still provide AWS credentials with enough privilege to perform the AssumeRole action. version_added: '2.9' regions: description: - A list of regions in which to describe EC2 instances. - If empty (the default) default this will include all regions, except possibly restricted ones like us-gov-west-1 and cn-north-1. type: list default: [] hostnames: description: - A list in order of precedence for hostname variables. - You can use the options specified in U(http://docs.aws.amazon.com/cli/latest/reference/ec2/describe-instances.html#options). - To use tags as hostnames use the syntax tag:Name=Value to use the hostname Name_Value, or tag:Name to use the value of the Name tag. type: list default: [] filters: description: - A dictionary of filter value pairs. - Available filters are listed here U(http://docs.aws.amazon.com/cli/latest/reference/ec2/describe-instances.html#options). type: dict default: {} include_extra_api_calls: description: - Add two additional API calls for every instance to include 'persistent' and 'events' host variables. - Spot instances may be persistent and instances may have associated events. type: bool default: False version_added: '2.8' strict_permissions: description: - By default if a 403 (Forbidden) error code is encountered this plugin will fail. - You can set this option to False in the inventory config file which will allow 403 errors to be gracefully skipped. type: bool default: True use_contrib_script_compatible_sanitization: description: - By default this plugin is using a general group name sanitization to create safe and usable group names for use in Ansible. This option allows you to override that, in efforts to allow migration from the old inventory script and matches the sanitization of groups when the script's ``replace_dash_in_groups`` option is set to ``False``. To replicate behavior of ``replace_dash_in_groups = True`` with constructed groups, you will need to replace hyphens with underscores via the regex_replace filter for those entries. - For this to work you should also turn off the TRANSFORM_INVALID_GROUP_CHARS setting, otherwise the core engine will just use the standard sanitization on top. - This is not the default as such names break certain functionality as not all characters are valid Python identifiers which group names end up being used as. type: bool default: False version_added: '2.8' s # Minimal example using environment vars or instance role credentials # Fetch all hosts in us-east-1, the hostname is the public DNS if it exists, otherwise the private IP address plugin: aws_ec2 regions: - us-east-1 # Example using filters, ignoring permission errors, and specifying the hostname precedence plugin: aws_ec2 boto_profile: aws_profile # Populate inventory with instances in these regions regions: - us-east-1 - us-east-2 filters: # All instances with their `Environment` tag set to `dev` tag:Environment: dev # All dev and QA hosts tag:Environment: - dev - qa instance.group-id: sg-xxxxxxxx # Ignores 403 errors rather than failing strict_permissions: False # Note: I(hostnames) sets the inventory_hostname. To modify ansible_host without modifying # inventory_hostname use compose (see example below). hostnames: - tag:Name=Tag1,Name=Tag2 # Return specific hosts only - tag:CustomDNSName - dns-name - private-ip-address # Example using constructed features to create groups and set ansible_host plugin: aws_ec2 regions: - us-east-1 - us-west-1 # keyed_groups may be used to create custom groups strict: False keyed_groups: # Add e.g. x86_64 hosts to an arch_x86_64 group - prefix: arch key: 'architecture' # Add hosts to tag_Name_Value groups for each Name/Value tag pair - prefix: tag key: tags # Add hosts to e.g. instance_type_z3_tiny - prefix: instance_type key: instance_type # Create security_groups_sg_abcd1234 group for each SG - key: 'security_groups|json_query("[].group_id")' prefix: 'security_groups' # Create a group for each value of the Application tag - key: tags.Application separator: '' # Create a group per region e.g. aws_region_us_east_2 - key: placement.region prefix: aws_region # Create a group (or groups) based on the value of a custom tag "Role" and add them to a metagroup called "project" - key: tags['Role'] prefix: foo parent_group: "project" # Set individual variables with compose compose: # Use the private IP address to connect to the host # (note: this does not modify inventory_hostname, which is set via I(hostnames)) ansible_host: private_ip_address N(t AnsibleError(t to_nativetto_text(t!ansible_dict_to_boto3_filter_listtboto3_tag_list_to_ansible_dict(tcamel_dict_to_snake_dict(tBaseInventoryPlugint Constructablet Cacheable(tDisplays=The ec2 dynamic inventory plugin requires boto3 and botocore.tGroupstGroupIdsgroup-idt GroupNames group-nametOwnerIds.network-interface.attachment.instance-owner-idsowner-idt RequesterIds requester-idt ReservationIdsreservation-idt PlacementtAffinitytaffinityt Architecturet architecturetAvailabilityZonesavailability-zonetBlockDeviceMappingstEbst AttachTimes block-device-mapping.attach-timetDeleteOnTerminations*block-device-mapping.delete-on-terminationt DeviceNames block-device-mapping.device-nametStatussblock-device-mapping.statustVolumeIdsblock-device-mapping.volume-idt ClientTokens client-tokent PublicDnsNamesdns-nametHostIdshost-idt Hypervisort hypervisortIamInstanceProfiletArnsiam-instance-profile.arntImageIdsimage-idt InstanceIds instance-idtInstanceLifecyclesinstance-lifecycletStatetCodesinstance-state-codetNamesinstance-state-namet InstanceTypes instance-typetSecurityGroupssinstance.group-idsinstance.group-nametPublicIpAddresss ip-addresstKernelIds kernel-idtKeyNameskey-nametAmiLaunchIndexs launch-indext LaunchTimes launch-timet Monitoringsmonitoring-statetNetworkInterfacestPrivateIpAddresss.network-interface.addresses.private-ip-addresstPrivateIpAddressestPrimarys#network-interface.addresses.primaryt AssociationtPublicIps1network-interface.addresses.association.public-ipt IpOwnerIds3network-interface.addresses.association.ip-owner-ids'network-interface.association.public-ips)network-interface.association.ip-owner-idtElasticGpuAssociationst ElasticGpuIds+network-interface.association.allocation-idtElasticGpuAssociationIds,network-interface.association.association-idt Attachmentt AttachmentIds*network-interface.attachment.attachment-ids(network-interface.attachment.instance-idt DeviceIndexs)network-interface.attachment.device-indexs#network-interface.attachment.statuss(network-interface.attachment.attach-times2network-interface.attachment.delete-on-terminations#network-interface.availability-zonet Descriptionsnetwork-interface.descriptionsnetwork-interface.group-idsnetwork-interface.group-namet Ipv6Addressest Ipv6Addresss-network-interface.ipv6-addresses.ipv6-addresst MacAddresssnetwork-interface.mac-addresstNetworkInterfaceIds&network-interface.network-interface-idsnetwork-interface.owner-idtPrivateDnsNames"network-interface.private-dns-names#network-interface.requester-managedsnetwork-interface.statustSourceDestChecks#network-interface.source-dest-checktSubnetIdsnetwork-interface.subnet-idtVpcIdsnetwork-interface.vpc-idsplacement-group-nametPlatformtplatformsprivate-dns-namesprivate-ip-addresst ProductCodest ProductCodeIds product-codetProductCodeTypesproduct-code.typet RamdiskIds ramdisk-idtStateTransitionReasontreasontRootDeviceNamesroot-device-nametRootDeviceTypesroot-device-typessource-dest-checktSpotInstanceRequestIdsspot-instance-request-idt StateReasonsstate-reason-codetMessagesstate-reason-messages subnet-idtTagsttagstag-keys tag-valuetTenancyttenancytVirtualizationTypesvirtualization-typesvpc-idtInventoryModulecB`seZdZdZdZdZdZddZdZdZ d Z d Z d Z d Z d ZdZdZdZdZdZedZedZRS(taws_ec2cC`sMtt|jd|_d|_d|_d|_d|_d|_ dS(Ntaws_ec2_( tsuperR]t__init__t group_prefixtNonet boto_profiletaws_secret_access_keytaws_access_key_idtaws_security_tokent iam_role_arn(tself((sE/usr/lib/python2.7/site-packages/ansible/plugins/inventory/aws_ec2.pyRa s     cC`s|dkrdSg}t|ts4t|trpxH|D].}|j||}|r;|j|q;q;Wn|j|}tt|tt|tg}|rt|dkr|dS|S(s :param obj: A list or dict of instance attributes :param attr: A key :return The value(s) found via the attr Nii( Rct isinstancetlistttuplet_compile_valuestappendtgettanytlen(Ritobjtattrttemp_objteachtvaluet has_indexes((sE/usr/lib/python2.7/site-packages/ansible/plugins/inventory/aws_ec2.pyRms  $cC`stttjttj}||krMtd||fn|tkrft|}n t|}|}x |D]}|j||}q}W|S(s :param filter_name: The filter :param instance: instance dict returned by boto3 ec2 describe_instances() s7Invalid filter '%s' provided; filter must be one of %s.(tsortedRkt!instance_data_filter_to_boto_attrtkeyst!instance_meta_filter_to_boto_attrRRm(Rit filter_nametinstancetallowed_filterstboto_attr_listtinstance_valuet attribute((sE/usr/lib/python2.7/site-packages/ansible/plugins/inventory/aws_ec2.pyt_get_boto_attr_chain/s(      cC`s^i}xQd|jfd|jfd|jffD]%}|dr1|d||ds(RRpRnt get_paginatortpaginatetbuild_full_resultRotupdatet_get_reservation_detailst get_optiont_get_event_set_and_persistencetextendRRRtresponseRRt BotoCoreErrorRx(RiRtfilterststrict_permissionst all_instancesRRtft paginatort reservationst instancestrt new_instancesR}R((sE/usr/lib/python2.7/site-packages/ansible/plugins/inventory/aws_ec2.pyt_get_instances_by_regions.)*!   0 cC`s-i|dd6|jddd6|dd6S(NRRtR(Ro(Rit reservation((sE/usr/lib/python2.7/site-packages/ansible/plugins/inventory/aws_ec2.pyRs cC`s@idd6td6}y;i|gd6}|j|ddjdd|d(R5R?R@(s InstanceId(R5R?RA(R5R?R(R5R?R(R5R?R(RR(R5RB(R5R R(R5R R(R5RCRD(R5RE(R5RF(R5sOwnerId(R5RG(R5R9R;(R5R(R5RH(R5RI(R5RJ(RR(RK(RG(R6(RMRN(RMRO(RP(RQ(RS(RT(RH(sSpotInstanceRequestId(RVR+(RVRW(RI(sTags(sTags(sTags(RRZ(R\(RJ(t __future__RRRttypet __metaclass__t DOCUMENTATIONtEXAMPLESR)tansible.errorsRtansible.module_utils._textRRtansible.module_utils.ec2RRRtansible.plugins.inventoryR R R tansible.utils.displayR RRt ImportErrorRR{RyR](((sE/usr/lib/python2.7/site-packages/ansible/plugins/inventory/aws_ec2.pytsLE