|
|
@ -37,6 +37,11 @@ $validate_certs = Get-AnsibleParam -obj $params -name "validate_certs" -type "bo
|
|
|
|
$client_cert = Get-AnsibleParam -obj $params -name "client_cert" -type "path"
|
|
|
|
$client_cert = Get-AnsibleParam -obj $params -name "client_cert" -type "path"
|
|
|
|
$client_cert_password = Get-AnsibleParam -obj $params -name "client_cert_password" -type "str"
|
|
|
|
$client_cert_password = Get-AnsibleParam -obj $params -name "client_cert_password" -type "str"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$result = @{
|
|
|
|
|
|
|
|
changed = $false
|
|
|
|
|
|
|
|
url = $url
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ($creates -and (Test-AnsiblePath -Path $creates)) {
|
|
|
|
if ($creates -and (Test-AnsiblePath -Path $creates)) {
|
|
|
|
$result.skipped = $true
|
|
|
|
$result.skipped = $true
|
|
|
|
Exit-Json -obj $result -message "The 'creates' file or directory ($creates) already exists."
|
|
|
|
Exit-Json -obj $result -message "The 'creates' file or directory ($creates) already exists."
|
|
|
@ -47,11 +52,6 @@ if ($removes -and -not (Test-AnsiblePath -Path $removes)) {
|
|
|
|
Exit-Json -obj $result -message "The 'removes' file or directory ($removes) does not exist."
|
|
|
|
Exit-Json -obj $result -message "The 'removes' file or directory ($removes) does not exist."
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$result = @{
|
|
|
|
|
|
|
|
changed = $false
|
|
|
|
|
|
|
|
url = $url
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($use_basic_parsing) {
|
|
|
|
if ($use_basic_parsing) {
|
|
|
|
Add-DeprecationWarning -obj $result -message "Since Ansible 2.5, use_basic_parsing does not change any behaviour, this option will be removed" -version 2.7
|
|
|
|
Add-DeprecationWarning -obj $result -message "Since Ansible 2.5, use_basic_parsing does not change any behaviour, this option will be removed" -version 2.7
|
|
|
|
}
|
|
|
|
}
|
|
|
|