feat(ansible): add incident screenshot controls for windows phase2

This commit is contained in:
igor04091968
2026-04-27 04:04:37 +03:00
parent f26012ae52
commit 1e9628b01b
8 changed files with 50 additions and 3 deletions
+8 -3
View File
@@ -320,6 +320,9 @@ function New-ActivityWatchDeploymentConfig {
[bool]$AfkEnabled = $true,
[bool]$WindowEnabled = $true,
[bool]$LocalAgentLogsEnabled = $true,
[bool]$IncidentCaptureEnabled = $true,
[bool]$IncidentScreenshotEnabled = $true,
[string]$IncidentArtifactsRoot,
[bool]$LogonMarkerEnabled = $true,
[Parameter(Mandatory = $true)]
[string]$LaunchScriptPath,
@@ -330,6 +333,8 @@ function New-ActivityWatchDeploymentConfig {
[string]$PackageVersion = 'v0.13.2'
)
$effectiveIncidentArtifactsRoot = if ($IncidentArtifactsRoot) { $IncidentArtifactsRoot } else { Join-Path $StateRoot 'incident-artifacts' }
return [pscustomobject]@{
version = 1
generatedAtUtc = (Get-Date).ToUniversalTime().ToString('o')
@@ -361,9 +366,9 @@ function New-ActivityWatchDeploymentConfig {
localAgentLogsEnabled = $LocalAgentLogsEnabled
}
incidentCapture = [pscustomobject]@{
enabled = $true
screenshotEnabled = $true
artifactsRoot = (Join-Path $StateRoot 'incident-artifacts')
enabled = $IncidentCaptureEnabled
screenshotEnabled = $IncidentScreenshotEnabled
artifactsRoot = $effectiveIncidentArtifactsRoot
}
sessionEvents = [pscustomobject]@{
logonEnabled = $LogonMarkerEnabled