{{ ansible_header | comment }}

# Logs Crans

# Logs pour le cablage
/pool/logs/tealc/cablage/global.log {
    daily
    rotate 365
    compress
    notifempty
    missingok
    create 640 root adm
    postrotate
        invoke-rc.d rsyslog rotate > /dev/null
    endscript
}


# Logs centralisés

# FreeRADIUS
/pool/logs/tealc/freeradius/*.log {
    weekly
    rotate 365
    compress
    delaycompress
    notifempty
    missingok
    postrotate
        invoke-rc.d rsyslog rotate > /dev/null
    endscript
}

# Logs des bornes et des switches
/pool/logs/tealc/wifi/global.log {
    daily
    rotate 365
    compress
    notifempty
    postrotate
        invoke-rc.d rsyslog rotate > /dev/null
    endscript
}

/pool/logs/tealc/filaire/global.log {
    daily
    rotate 365
    compress
    notifempty
    postrotate
        invoke-rc.d rsyslog rotate > /dev/null
    endscript
}