Sync tags
Description
This script is an Ansible playbook designed to synchronize VMware tags from a server database. It connects to VMware vCenter servers and a SQL database, retrieves server information, and updates VMware tags based on the database values. The script includes functions to update tag assignments, check tags, and generate an HTML email report with the synchronization results. The email report is sent to a specified recipient, providing details about the synchronization process, including any errors or warnings encountered. The playbook ensures that VMware tags are consistent with the server database, helping maintain accurate and up-to-date information.
Credentials
- sys_ansible_vmware
- DG_ServersUser1 (SQL account)
- sys_srvaapwin_batch (script user on srvaapwin)
- sys_ansible_windows
Input
| Variable | Description |
|---|---|
ServerInstance |
Hostname for the database |
Database |
SQL server database name |
VcServers |
Name of the Vsphere servers |
email |
Email adress(es) of the recipients of the report |
Output
Sends report as email