This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ansible-playbook -i inventory install.yml -e "postgres_data_dir=/var/lib/pgdocker" | |
PLAY [Build and deploy AWX] ************************************************************************************** | |
TASK [Gathering Facts] ******************************************************************************************* | |
ok: [localhost] | |
TASK [check_vars : include_tasks] ******************************************************************************** | |
skipping: [localhost] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Thank you, Microsoft! | |
switch((Get-UICulture).Name){ | |
# You need to check for every Culture the script could encounter | |
"de-DE" {$Yes = "J"} | |
default {$Yes = "Y"} | |
} | |
$TakeOwnParameters = @("/f", $Share, "/R", "/D", $Yes) | |
Invoke-Expression "takeown.exe @TakeOwnParameters" | Write-Output |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-StrictMode -Version "2.0" | |
function ProcessContent{ | |
$FileName = Join-Path "C:\PATH\IN" ("{0}.JSON" -f $PlannedChanges.Anforderung.Changenummer) | |
$PlannedChanges|ConvertTo-Json -Compress|Out-File -Encoding utf8 $FileName | |
Invoke-Expression "C:\PATH\Skript\MoveHome.ps1 -changenummer $PlannedChanges.Anforderung.Changenummer" | |
} | |
Get-ChildItem "C:\PATH\IN" -Filter *.TXT | Where-Object{$_.FullName -ne $null} |` | |
ForEach-Object{ |