Skip to content

Cleanup IIS Logging

Go to Automation

View in GitLab

Description

This playbook automates the cleanup of IIS log files on Windows servers. It compresses old IIS log files (older than the first day of the previous month) into ZIP archives, moves these archives to a central backup directory, and deletes the original log files. It excludes specified sites from cleanup and provides feedback on the operation.

Credentials

  • sys_ansible_iis

Input

Variable Description
target Target Windows server where IIS logs will be cleaned up
domain_user Domain user for privilege escalation (become)
domain_password Password for the domain user

Output

None

Dependencies