|
|
|
@ -28,7 +28,6 @@ description:
|
|
|
|
version if one is not available.
|
|
|
|
version if one is not available.
|
|
|
|
author: "Chris Schmidt (@chrisisbeef)"
|
|
|
|
author: "Chris Schmidt (@chrisisbeef)"
|
|
|
|
requirements:
|
|
|
|
requirements:
|
|
|
|
- "python >= 2.6"
|
|
|
|
|
|
|
|
- lxml
|
|
|
|
- lxml
|
|
|
|
- boto if using a S3 repository (s3://...)
|
|
|
|
- boto if using a S3 repository (s3://...)
|
|
|
|
options:
|
|
|
|
options:
|
|
|
|
@ -155,7 +154,11 @@ import os
|
|
|
|
import posixpath
|
|
|
|
import posixpath
|
|
|
|
import sys
|
|
|
|
import sys
|
|
|
|
|
|
|
|
|
|
|
|
from lxml import etree
|
|
|
|
try:
|
|
|
|
|
|
|
|
from lxml import etree
|
|
|
|
|
|
|
|
HAS_LXML_ETREE = True
|
|
|
|
|
|
|
|
except ImportError:
|
|
|
|
|
|
|
|
HAS_LXML_ETREE = False
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
import boto3
|
|
|
|
import boto3
|
|
|
|
@ -419,6 +422,9 @@ def main():
|
|
|
|
add_file_common_args=True
|
|
|
|
add_file_common_args=True
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if not HAS_LXML_ETREE:
|
|
|
|
|
|
|
|
module.fail_json(msg='module requires the lxml python library installed on the managed machine')
|
|
|
|
|
|
|
|
|
|
|
|
repository_url = module.params["repository_url"]
|
|
|
|
repository_url = module.params["repository_url"]
|
|
|
|
if not repository_url:
|
|
|
|
if not repository_url:
|
|
|
|
repository_url = "http://repo1.maven.org/maven2"
|
|
|
|
repository_url = "http://repo1.maven.org/maven2"
|
|
|
|
|