Inventory Lifecycle
Description
This playbook generates and sends a lifecycle report for servers, summarizing servers that have been commissioned, decommissioned, or virtualized (P2V) within a specified number of days. It queries a SQL database for relevant server events, formats the results into HTML tables, and emails the report to designated recipients. The playbook is useful for IT asset management, providing visibility into recent changes in the server landscape and supporting compliance and planning activities.
Credentials
- sys_ansible_windows
- sys_aapwin_serverdb
Input
| Variable | Description |
|---|---|
days |
Number of days to report |
tower_job_template_name |
Name of the automation template |
email |
Recipient email address |
domain_user |
Domain user for privilege escalation |
domain_password |
Password for domain user |
Output
- HTML email report with server lifecycle events