{ "slug": "docker-orphan-detection", "kind": "ansible", "metadata": { "name": "Docker Orphan Detection", "description": "Detects orphaned Docker resources (dead/exited containers, dangling images, volumes, and networks) and optionally sends a report to Discord via webhook.", "tags": [ "docker", "audit", "orphan", "report" ], "icon": { "provider": "mdi", "id": "magnify", "color": "fuchsia" }, "draft": true, "version": { "name": "1", "source_dep_name": "manual/docker-orphan-detection" } }, "variables": [ { "title": "Discord Webhook", "name": "discord", "items": [ { "name": "discord_enabled", "type": "bool", "title": "Discord", "required": false, "default": false, "description": "Send orphan detection summary to Discord webhook" }, { "name": "discord_webhook_url", "type": "str", "title": "Discord Webhook URL", "required": false, "default": "" }, { "name": "discord_username", "type": "str", "title": "Discord Username", "required": false, "default": "Docker Reporter", "description": "Sender name for webhook message", "config": { "placeholder": "Docker Reporter" } }, { "name": "discord_message_prefix", "type": "str", "title": "Discord Message Prefix", "required": false, "default": "Docker Orphan Detection Report", "description": "Prefix line sent before report content", "config": { "placeholder": "Docker Orphan Detection Report" } } ] }, { "title": "Internal", "name": "internal", "items": [ { "name": "report_root", "type": "str", "title": "Report Root", "required": false, "default": "/reports", "config": { "placeholder": "/reports" } }, { "name": "orphan_dead_containers", "type": "str", "title": "Orphan Dead Containers", "required": false, "default": "" }, { "name": "orphan_dangling_images", "type": "str", "title": "Orphan Dangling Images", "required": false, "default": "" }, { "name": "orphan_dangling_volumes", "type": "str", "title": "Orphan Dangling Volumes", "required": false, "default": "" }, { "name": "docker_orphan_report_body", "type": "str", "title": "Orphan Report Body", "required": false, "default": "" }, { "name": "report_timestamp", "type": "str", "title": "Report Timestamp", "required": false, "default": "" }, { "name": "orphan_exited_containers", "type": "str", "title": "Orphan Exited Containers", "required": false, "default": "" }, { "name": "orphan_dangling_networks", "type": "str", "title": "Orphan Dangling Networks", "required": false, "default": "" }, { "name": "report_file_name", "type": "str", "title": "Report File Name", "required": false, "default": "" }, { "name": "discord_orphan_report_content", "type": "str", "title": "Orphan Report", "required": false, "default": "" }, { "name": "inventory_hostname", "type": "str", "title": "Inventory Hostname", "required": false, "default": "" } ] } ] }