def url_argument_spec():
 return dict(url=dict(), force=dict(default='no', aliases=['thirsty'], type='bool'), http_agent=dict(default='ansible-httpget'), use_proxy=dict(default='yes', type='bool'), validate_certs=dict(default='yes', type='bool'), url_username=dict(required=False), url_password=dict(required=False), force_basic_auth=dict(required=False, type='bool', default='no'))

def url_argument_spec ( ) : return dict ( url = dict ( ) , force = dict ( default = 'no' , aliases = [ 'thirsty' ] , type = 'bool' ) , http_agent = dict ( default = 'ansible-httpget' ) , use_proxy = dict ( default = 'yes' , type = 'bool' ) , validate_certs = dict ( default = 'yes' , type = 'bool' ) , url_username = dict ( required = False ) , url_password = dict ( required = False ) , force_basic_auth = dict ( required = False , type = 'bool' , default = 'no' ) )
creates an argument spec that can be used with any module that will be requesting content via urllib/urllib2 .