change guard condition to if block as per PR comment
add serverspec for logrotate.d folder