ideascube / ansiblecube

Ansible playbook to quickly deploy an ideascube server and much more !
MIT License
5 stars 9 forks source link

The hdw_info.txt log file may be handled by logrotate #160

Open letompouce opened 6 years ago

letompouce commented 6 years ago

The logs/ role uploads the hdw_info.txt file.

This file is not handled by logrotate. As a result, we only have the latest version on tincmaster.

We might need to look at an older version. Example: I want to see wether the wifi cards have been changed on a server. I can not compare the MAC addresses, since we don't have the ones from the beginning anymore.

This can be achieved by adding this hdw_info.txt file to logrotate.conf. The file is not that big so it won't clutter our disk space nor the bandwidth.

The logrotate.conf stanza would need to be carefuly crafted to avoid having a shitload of identical files - i.e. do not rotate an unmodified file.