750cc8afd4fff3e0f4f9078fe6a23e5c493fe6cb
Since Apache HTTPD does not have any built-in log rotation capability, we need `logrotate`. Somewhere along the line, the *logrotate* package stopped being installed by default. Additionally, with Fedora 30, it changed from including a drop-in file for (Ana)cron to providing a systemd timer unit. The *logrotate* role will ensure that the *logrotate* package is installed, and that the *logrotate.timer* service is enabled and running. This in turn will ensure that `logrotate` runs daily. Of course, since the systemd units were added in Fedora 30, machines to which this role is applied must be running at least that version. By listing the *logrotate* role as a dependency of the *httpd* role, we can ensure that `logrotate` manages the Apache error and access log files on any server that runs Apache HTTPD.
Description
Ansible configuration policy for the private network/home lab of Dustin C. Hatch
http://dustin.hatch.name/
Languages
Jinja
86.2%
Python
6.6%
Shell
4.6%
Groovy
2.6%