Playbook for auditing linux and windows server( cpu, mem, os version…)

Hello, please i need some help with the creation of an ansible playbook for auditing servers.
Have anyone here worked on such a task please? . Thank you