Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/network/f5/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyo

�
�Udac@`soddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
Z
ddlmZdd
l
mZddlmZytddlmZddlmZddlmZddlmZddlmZddlmZddlmZWn�ek
r�ddlmZddlmZddlmZddlmZddlmZddlmZddl mZnXdefd��YZ!de!fd��YZ"de!fd��YZ#de!fd��YZ$de$fd��YZ%d e$fd!��YZ&d"e'fd#��YZ(d$e'fd%��YZ)d&e'fd'��YZ*d(�Z+e,d)krke+�ndS(*i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	certifiedtsupported_bysq
---
module: bigiq_application_https_offload
short_description: Manages BIG-IQ HTTPS offload applications
description:
  - Manages BIG-IQ applications used for load balancing an HTTPS application on
    port 443 with SSL offloading on BIG-IP.
version_added: 2.6
options:
  name:
    description:
      - Name of the new application.
    type: str
    required: True
  description:
    description:
      - Description of the application.
    type: str
  servers:
    description:
      - A list of servers that the application is hosted on.
      - If you are familiar with other BIG-IP setting, you might also refer to this
        list as the list of pool members.
      - When creating a new application, at least one server is required.
    suboptions:
      address:
        description:
          - The IP address of the server.
        type: str
      port:
        description:
          - The port of the server.
        type: str
        default: 80
    type: list
  inbound_virtual:
    description:
      - Settings to configure the virtual which will receive the inbound connection.
      - This virtual will be used to host the HTTPS endpoint of the application.
      - Traffic destined to the C(redirect_virtual) will be offloaded to this
        parameter to ensure that proper redirection from insecure, to secure, occurs.
    suboptions:
      address:
        description:
          - Specifies destination IP address information to which the virtual server
            sends traffic.
          - This parameter is required when creating a new application.
        type: str
      netmask:
        description:
          - Specifies the netmask to associate with the given C(address).
          - This parameter is required when creating a new application.
        type: str
      port:
        description:
          - The port that the virtual listens for connections on.
          - When creating a new application, if this parameter is not specified, the
            default value of C(443) will be used.
        type: str
        default: 443
    type: dict
  redirect_virtual:
    description:
      - Settings to configure the virtual which will receive the connection to be
        redirected.
      - This virtual will be used to host the HTTP endpoint of the application.
      - Traffic destined to this parameter will be offloaded to the
        C(inbound_virtual) parameter to ensure that proper redirection from insecure,
        to secure, occurs.
    suboptions:
      address:
        description:
          - Specifies destination IP address information to which the virtual server
            sends traffic.
          - This parameter is required when creating a new application.
        type: str
      netmask:
        description:
          - Specifies the netmask to associate with the given C(address).
          - This parameter is required when creating a new application.
        type: str
      port:
        description:
          - The port that the virtual listens for connections on.
          - When creating a new application, if this parameter is not specified, the
            default value of C(80) will be used.
        type: str
        default: 80
    type: dict
  client_ssl_profile:
    description:
      - Specifies the SSL profile for managing client-side SSL traffic.
    suboptions:
      name:
        description:
          - The name of the client SSL profile to created and used.
          - When creating a new application, if this value is not specified, the
            default value of C(clientssl) will be used.
      cert_key_chain:
        description:
          - One or more certificates and keys to associate with the SSL profile.
          - This option is always a list. The keys in the list dictate the details
            of the client/key/chain/passphrase combination.
          - Note that BIG-IPs can only have one of each type of each certificate/key
            type. This means that you can only have one RSA, one DSA, and one ECDSA
            per profile.
          - If you attempt to assign two RSA, DSA, or ECDSA certificate/key combo,
            the device will reject this.
          - This list is a complex list that specifies a number of keys.
          - When creating a new profile, if this parameter is not specified, the
            default value of C(inherit) will be used.
        suboptions:
          cert:
            description:
              - Specifies a cert name for use.
            type: str
            required: True
          key:
            description:
              - Specifies a key name.
            type: str
            required: True
          chain:
            description:
              - Specifies a certificate chain that is relevant to the certificate and
                key mentioned earlier.
              - This key is optional.
            type: str
          passphrase:
            description:
              - Contains the passphrase of the key file, should it require one.
              - Passphrases are encrypted on the remote BIG-IP device.
            type: str
        type: raw
    type: dict
  service_environment:
    description:
      - Specifies the name of service environment or the hostname of the BIG-IP that
        the application will be deployed to.
      - When creating a new application, this parameter is required.
    type: str
  add_analytics:
    description:
      - Collects statistics of the BIG-IP that the application is deployed to.
      - This parameter is only relevant when specifying a C(service_environment) which
        is a BIG-IP; not an SSG.
    type: bool
    default: no
  state:
    description:
      - The state of the resource on the system.
      - When C(present), guarantees that the resource exists with the provided attributes.
      - When C(absent), removes the resource from the system.
    type: str
    choices:
      - absent
      - present
    default: present
  wait:
    description:
      - If the module should wait for the application to be created, deleted or updated.
    type: bool
    default: yes
extends_documentation_fragment: f5
notes:
  - This module will not work on BIGIQ version 6.1.x or greater.
author:
  - Tim Rupp (@caphrim007)
sm
- name: Load balance an HTTPS application on port 443 with SSL offloading on BIG-IP
  bigiq_application_https_offload:
    name: my-app
    description: Redirect HTTP to HTTPS
    service_environment: my-ssg
    servers:
      - address: 1.2.3.4
        port: 8080
      - address: 5.6.7.8
        port: 8080
    inbound_virtual:
      address: 2.2.2.2
      netmask: 255.255.255.255
      port: 443
    redirect_virtual:
      address: 2.2.2.2
      netmask: 255.255.255.255
      port: 80
    provider:
      password: secret
      server: lb.mydomain.com
      user: admin
    state: present
  delegate_to: localhost
sd
description:
  description: The new description of the application of the resource.
  returned: changed
  type: str
  sample: My application
service_environment:
  description: The environment which the service was deployed to.
  returned: changed
  type: str
  sample: my-ssg1
inbound_virtual_destination:
  description: The destination of the virtual that was created.
  returned: changed
  type: str
  sample: 6.7.8.9
inbound_virtual_netmask:
  description: The network mask of the provided inbound destination.
  returned: changed
  type: str
  sample: 255.255.255.0
inbound_virtual_port:
  description: The port the inbound virtual address listens on.
  returned: changed
  type: int
  sample: 80
servers:
  description: List of servers, and their ports, that make up the application.
  type: complex
  returned: changed
  contains:
    address:
      description: The IP address of the server.
      returned: changed
      type: str
      sample: 2.3.4.5
    port:
      description: The port that the server listens on.
      returned: changed
      type: int
      sample: 8080
  sample: hash/dictionary of values
N(tLooseVersion(t
AnsibleModule(tstring_types(tF5RestClient(t
F5ModuleError(tAnsibleF5Parameters(tf5_argument_spec(tfq_name(tis_valid_ip(t
bigiq_versiont
ParameterscB`s�eZidd6dd6dd6dd6dd	6d
d6Zdd
ddddd	dgZdd
dddddddddd
gZdd
ddddddd
g	ZRS(ttemplate_referencettemplateReferencetsub_pathtsubPatht
ssg_referencetssgReferencetconfig_set_namet
configSetNametdefault_device_referencetdefaultDeviceReferencet
add_analyticstaddAnalyticst	resourcestdescriptiontserverstinbound_virtualtredirect_virtualtclient_ssl_profile(t__name__t
__module__tapi_maptapi_attributestreturnablest
updatables(((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyRs
t
ApiParameterscB`seZRS((R%R&(((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyR+3stModuleParameterscB`sbeZed��Zed��Zed��Zed��Zed��Zed��ZRS(cC`sdS(Ntprofile_http((tself((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pythttp_profile8scC`s|jS(N(tname(R.((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyR<scC`s|jS(N(R0(R.((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyR@scC`sd}dj|jjd|jjd|�}|jjj|�}y|j�}Wn%tk
r{}tt|���nX|j	dkr�|ddkr�td��nMd	|kr�|d	d
kr�d|kr�t|d��q�t|j
��ntd|d
dd�}|S(Ns.name+eq+'Default-f5-HTTPS-offload-lb-template'sMhttps://{0}:{1}/mgmt/cm/global/templates/?$filter={2}&$top=1&$select=selfLinktservertserver_porti�t
totalItemsis&No default HTTP LB template was found.tcodei�tmessagetlinktitemstselfLink(tformattclienttprovidertapitgettjsont
ValueErrorRtstrRt_contenttdict(R.tfilterturitresptresponsetextresult((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyRDs(

	cC`s;t|j�r$dj|j�}ndj|j�}dj|jjd|jjd|�}|jjj|�}y|j�}Wn%tk
r�}t	t
|���nX|jdkr�|ddkr�dSd	|kr|d	d
krd|kr
t	|d��qt	|j
��ntd|d
dd�}|S(Nsaddress+eq+'{0}'shostname+eq+'{0}'szhttps://{0}:{1}/mgmt/shared/resolver/device-groups/cm-adccore-allbigipDevices/devices/?$filter={2}&$top=1&$select=selfLinkR1R2i�R3iR4i�R5R6R7R8(Rtservice_environmentR9R:R;R<R=R>R?RR@RtNoneRARB(R.RCRDRERFRGRH((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyR`s*

	cC`sdj|j�}dj|jjd|jjd|�}|jjj|�}y|j�}Wn%tk
r�}tt	|���nX|j
dkr�|ddkr�dSd|kr�|dd	kr�d
|kr�t|d
��q�t|j��nt
d|ddd
�}|S(Ns
name+eq+'{0}'sYhttps://{0}:{1}/mgmt/cm/cloud/service-scaling-groups/?$filter={2}&$top=1&$select=selfLinkR1R2i�R3iR4i�R5R6R7R8(R9RIR:R;R<R=R>R?RR@RRJRARB(R.RCRDRERFRGRH((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyRs&

	(	R%R&tpropertyR/RRRRR(((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyR,7stChangescB`seZd�ZRS(cC`sXi}y:x$|jD]}t||�||<qW|j|�}Wntk
rSnX|S(N(R)tgetattrt_filter_paramst	Exception(R.RHt
returnable((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyt	to_return�s
(R%R&RQ(((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyRL�st
UsableChangescB`s�eZed��Zed��Zed��Zed��Zed��Zed��Zed��Z	ed��Z
ed��Zed	��Zed
��Z
ed��Zd�Zd
�Zed��ZRS(cC`s}t�}|j|j�|j|j�|j|j�|j|j�|j|j�|j|j�|j|j�|S(N(	RBtupdateR/thttp_monitortinbound_virtual_servertredirect_virtual_servertpooltnodestssl_profile(R.RH((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyR�s	cC`s\t�}tdtddd|jdd|jdd|jd	�d
|j�g|d<|S(Nt
parametersR0t
default_vstdestinationAddresstaddresstmasktnetmasktdestinationPorttporttsubcollectionResourcessltm:virtual:7a5f7da91996(RBR"tinbound_profiles(R.RH((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyRU�s	

cC`sLitdt��gd6tdt��gd6tdt��gd6}|S(NRZsprofiles:14c995c33411sprofiles:8ba4bb101701sprofiles:9448fe71611e(RB(R.RH((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyRc�scC`s\t�}tdtddd|jdd|jdd|jd	�d
|j�g|d<|S(NRZR0tdefault_redirect_vsR\R]R^R_R`RaRbsltm:virtual:40e8c4a6f542(RBR#tredirect_profiles(R.RH((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyRV�s	

cC`s6itdt��gd6tdt��gd6}|S(NRZsprofiles:8ba4bb101701sprofiles:9448fe71611e(RB(R.RH((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyRe�scC`s5t�}tdtdd�d|j�g|d<|S(NRZR0tpool_0Rbsltm:pool:be70d46c6d73(RBtpool_members(R.RH((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyRW�s		cC`s�t�}g|d<xm|jD]b}tdtd|ddtddj|d�dd	j|d����}|dj|�qW|S(
Nsmembers:dec6d24dc625RZRat
nodeReferenceR6s%#/resources/ltm:node:45391b57b104/{0}R]tfullPaths# {0}(RBR!R9tappend(R.RHtxtmember((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyRgs	

cC`s,t�}tdtdd��g|d<|S(NRZR0R-sltm:profile:http:8ba4bb101701(RB(R.RH((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyR/s
	cC`s,t�}tdtdd��g|d<|S(NRZR0smonitor-httpsltm:monitor:http:fd07629373b0(RB(R.RH((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyRT!s
	c	C`sbt�}g|d<xH|jD]=}tdtd|dd|d��}|dj|�qW|S(Nsltm:node:45391b57b104RZR0R](RBR!Rj(R.RHRkttmp((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyRX-s	

cC`s$g|jD]}|d^q
}|S(NR](R!(R.RkRH((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pytnode_addresses;s cC`s5t�}tdtddd|j��g|d<|S(NRZR0t	clientssltcertKeyChains#ltm:profile:client-ssl:14c995c33411(RBtcert_key_chains(R.RH((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyRY@s	cC`s�t�}dj|jjd|jjd�}|jjj|�}y|j�}Wn%tk
r{}tt	|���nXx7|dD]+}t
|d|d�}|d||<q�W|S(NsBhttps://{0}:{1}/mgmt/cm/adc-core/working-config/sys/file/ssl-cert/R1R2R7t	partitionR0R8(RBR9R:R;R<R=R>R?RR@R(R.RHRDRERFRGtcerttkey((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyt_get_cert_referencesMs	
cC`s�t�}dj|jjd|jjd�}|jjj|�}y|j�}Wn%tk
r{}tt	|���nXx7|dD]+}t
|d|d�}|d||<q�W|S(NsAhttps://{0}:{1}/mgmt/cm/adc-core/working-config/sys/file/ssl-key/R1R2R7RrR0R8(RBR9R:R;R<R=R>R?RR@R(R.RHRDRERFRGRsRt((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyt_get_key_references^s	
c	C`sg}|jdkrdSd|jkr,dS|jd}t|t�rc|dkrctd��nt|t�s�td��n|j�}|j�}xpt|�D]b\}}t	ddj
|��}d|kr�td��nF|d|krtd	��n'|d}t	d
||d|�|d<d
|krFtd��nF|d
|kretd��n'|d
}t	d
||d|�|d<d|kr�|d|kr�td��n'|d}t	d
||d|�|d<d|kr�|d|d<n|j|�q�W|S(Ntcert_key_chaintinheritsJOnly the 'inherit' setting is available when 'cert_key_chain' is a string.s@The value of 'cert_key_chain' is not one of the supported types.R0sclientssl{0}RssLA 'cert' option is required when specifying the 'cert_key_chain' parameter..sBThe specified 'cert' was not found. Did you specify its full path?R6Rit
certReferenceRtsKA 'key' option is required when specifying the 'cert_key_chain' parameter..sAThe specified 'key' was not found. Did you specify its full path?tkeyReferencetchaintchainReferencet
passphrase(R$RJt
isinstanceR
RtlistRuRvt	enumerateRBR9Rj(	R.RHtkctcert_referencestkey_referencestidxRkRmRt((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyRqns`









(R%R&RKRRURcRVReRWRgR/RTRXRnRYRuRvRq(((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyRR�s

		tReportableChangescB`seZRS((R%R&(((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyR��st
DifferencecB`s&eZdd�Zd�Zd�ZRS(cC`s||_||_dS(N(twantthave(R.R�R�((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyt__init__�s	cC`s9yt||�}|SWntk
r4|j|�SXdS(N(RMtAttributeErrort_Difference__default(R.tparamRH((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pytcompare�s

cC`sQt|j|�}y&t|j|�}||kr7|SWntk
rL|SXdS(N(RMR�R�R�(R.R�tattr1tattr2((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyt	__default�s
N(R%R&RJR�R�R�(((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyR��s	t
ModuleManagercB`s�eZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�ZRS(cO`sm|jdd�|_t|jj�|_td|jj�|_|j|j_t�|_	t
�|_dS(Ntmoduletparams(R=RJR�RR�R:R,R�R+R�RRtchanges(R.targstkwargs((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyR��scC`syi}xBtjD]7}t|j|�dk	rt|j|�||<qqW|rutd|�|_|j|j_ndS(NR�(RR)RMR�RJRRR�R:(R.tchangedRt((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyt_set_changed_options�scC`s�t|j|j�}tj}t�}xX|D]P}|j|�}|dkrUq.q.t|t�rt|j	|�q.|||<q.W|r�t
d|�|_|j|j_t
StS(NR�(R�R�R�RR*RBR�RJR~RSRRR�R:tTruetFalse(R.tdiffR*R�tktchange((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyt_update_changed_options�s		
cC`s|j�}|rtStS(N(R�R�R�(R.RH((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyt
should_update�scC`s:t|j�}t|�td�kr6td��ndS(Ns6.1.0s2Module supports only BIGIQ version 6.0.x or lower.(RR:RR(R.tversion((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pytcheck_bigiq_version�scC`s�|j�t}t�}|jj}|dkr@|j�}n|dkr[|j�}ntd|jj	��}|j	�}|j
|�|j
td|��|j|�|S(NtpresenttabsentR�R�(R�R�RBR�tstateR�R�R�R�RQRSt_announce_deprecations(R.R�RHR�t
reportableR�((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pytexec_modules
	

cC`sK|jdg�}x2|D]*}|jjjd|dd|d�qWdS(Nt
__warningstmsgR�(tpopR:R�t	deprecate(R.RHtwarningstwarning((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyR�s


cC`s|j�rtS|j�SdS(N(texistsR�tcreate(R.((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyR�scC`s�dj|jjd|jjd|jj�}|jjj|�}y|j�}Wn%tk
r{}t	t
|���nX|jdkr�d|kr�d|dkr�|dddkr�tSt
S(Nsbhttps://{0}:{1}/mgmt/ap/query/v1/tenants/default/reports/AllApplicationsList?$filter=name+eq+'{2}'R1R2i�RHR3i(R9R:R;R�R0R<R=R>R?RR@RR�R�(R.RDRERFRG((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyR�#s

?cC`sW|jjrtS|j�}|jjrS|j|�|j�rStd��qSntS(NsFailed to delete the resource.(	R�t
check_modeR�tremove_from_deviceR�twaittwait_for_apply_template_taskR�R(R.t	self_link((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pytremove2s
cC`s,|jjdkr(|jjdkr(tStS(N(R�RRJRR�R�(R.((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pythas_no_service_environment<s$cC`s�|jjdkr!td��n|jjdkrBtd��n|jjdkrctd��n|j�|j�r�tdj|jj���n|j	j
r�tS|j�}|jj
r�|j|�|j�s�td��q�ntS(NsJA 'service_environment' must be specified when creating a new application.sFAt least one 'servers' item is needed when creating a new application.sGAn 'inbound_virtual' must be specified when creating a new application.s8The specified 'service_environment' ({0}) was not found.sFailed to deploy application.(R�RIRJRR!R"R�R�R9R�R�R�tcreate_on_deviceR�R�R�(R.R�((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyR�As,

cC`s�|jj�}d|d<dj|jjd|jjd�}|jjj|d|�}y|j�}Wn%tk
r�}t	t
|���nXd|kr�|ddkr�d	|kr�t	|d	��q�t	|j��n|d
S(NtCREATEtmodes3https://{0}:{1}/mgmt/cm/global/tasks/apply-templateR1R2R>R4i�R5R8(R�t
api_paramsR9R:R;R<tpostR>R?RR@RA(R.R�RDRERFRG((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyR�`s

cC`s|j�r|j�StS(N(R�R�R�(R.((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyR�vs
cC`s�td|jjdd�}dj|jjd|jjd�}|jjj|d|�}y|j�}Wn%t	k
r�}t
t|���nXd|kr�|dd	kr�d
|kr�t
|d
��q�t
|j��n|dS(NRR�tDELETEs3https://{0}:{1}/mgmt/cm/global/tasks/apply-templateR1R2R>R4i�R5R8(
RBR�R0R9R:R;R<R�R>R?RR@RA(R.R�RDRERFRG((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyR�{s 	
cC`s�dj|jjd|jjd�}|jd|�}x�tr�|jjj|�}y|j�}Wn%tk
r�}t	t
|���nX|ddkr�|jdd�dkr�tSd	|kr�t	|d	��ntj
d
�q;WdS(Nshttps://{0}:{1}R1R2shttps://localhostRtFINISHEDtcurrentSteptDONEterrorMessagei(R9R:R;treplaceR�R<R=R>R?RR@RJttimetsleep(R.R�thostRDRERFRG((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyR��s
	((R%R&R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�(((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyR��s 											
					tArgumentSpeccB`seZd�ZRS(c#C`s�t|_tdtdt�dt�dtdddtdtdt�d	td
d���dtdd
dtdtdt�dtdt�d	td
d���dtdd
dtdtdt�dtdt�d	td
d���dt�dtd
ddddg�dtdd
dtd
d�dtdddtdt�dt�dt�dt����dtddd
d �d!tddd
d"��
}i|_|jjt�|jj|�d#dgg|_dS($NR0trequiredR R!ttypeRtoptionsR]RatdefaultiPR"RBR_i�R#RIR�R�tchoicesR�R$RoRwtrawRsRtR{R}RtbooltnoR�tyestinherit_cert_key_chain(R�tsupports_check_modeRBt
argument_specRSRtmutually_exclusive(R.R�((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyR��sR							(R%R&R�(((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyR��scC`s�t�}td|jd|jd|j�}y,td|�}|j�}|j|�Wn)tk
r�}|j	dt
|��nXdS(NR�R�R�R�R�(R�R	R�R�R�R�R�t	exit_jsonRt	fail_jsonR@(tspecR�tmmtresultsRG((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pytmain�s			t__main__(-t
__future__RRRR�t
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNR�tdistutils.versionRtansible.module_utils.basicR	tansible.module_utils.sixR
t%library.module_utils.network.f5.bigiqRt&library.module_utils.network.f5.commonRR
RRt)library.module_utils.network.f5.ipaddressRt(library.module_utils.network.f5.icontrolRtImportErrort%ansible.module_utils.network.f5.bigiqt&ansible.module_utils.network.f5.commont)ansible.module_utils.network.f5.ipaddresst(ansible.module_utils.network.f5.icontrolRR+R,RLRRR�tobjectR�R�R�R�R%(((s^/usr/lib/python2.7/site-packages/ansible/modules/network/f5/bigiq_application_https_offload.pyt<module>sP


�,
b��:	

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]