Prefer Ansible Disitribution over Ansible OS Family
This commit is contained in:
		
							
								
								
									
										20
									
								
								templates/CentOS/6/etc/logrotate.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								templates/CentOS/6/etc/logrotate.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| # see "man logrotate" for details | ||||
| # rotate log files weekly | ||||
| daily | ||||
|  | ||||
| # keep 4 weeks worth of backlogs | ||||
| rotate {{ log_retention_days }} | ||||
|  | ||||
| # create new (empty) log files after rotating old ones | ||||
| create | ||||
|  | ||||
| # use date as a suffix of the rotated file | ||||
| dateext | ||||
|  | ||||
| # uncomment this if you want your log files compressed | ||||
| compress | ||||
|  | ||||
| # packages drop log rotation information into this directory | ||||
| include /etc/logrotate.d | ||||
|  | ||||
| # system-specific logs may be also be configured here. | ||||
							
								
								
									
										7
									
								
								templates/CentOS/6/etc/logrotate.d/btmp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								templates/CentOS/6/etc/logrotate.d/btmp
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| # no packages own btmp -- we'll rotate it here | ||||
| /var/log/btmp { | ||||
|     missingok | ||||
|     monthly | ||||
|     create 0660 root utmp | ||||
|     rotate 1 | ||||
| } | ||||
							
								
								
									
										8
									
								
								templates/CentOS/6/etc/logrotate.d/wtmp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								templates/CentOS/6/etc/logrotate.d/wtmp
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| # no packages own wtmp -- we'll rotate it here | ||||
| /var/log/wtmp { | ||||
|     missingok | ||||
|     monthly | ||||
|     create 0664 root utmp | ||||
|     minsize 1M | ||||
|     rotate 1 | ||||
| } | ||||
							
								
								
									
										20
									
								
								templates/CentOS/7/etc/logrotate.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								templates/CentOS/7/etc/logrotate.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| # see "man logrotate" for details | ||||
| # rotate log files weekly | ||||
| daily | ||||
|  | ||||
| # keep 4 weeks worth of backlogs | ||||
| rotate {{ log_retention_days }} | ||||
|  | ||||
| # create new (empty) log files after rotating old ones | ||||
| create | ||||
|  | ||||
| # use date as a suffix of the rotated file | ||||
| dateext | ||||
|  | ||||
| # uncomment this if you want your log files compressed | ||||
| compress | ||||
|  | ||||
| # packages drop log rotation information into this directory | ||||
| include /etc/logrotate.d | ||||
|  | ||||
| # system-specific logs may be also be configured here. | ||||
							
								
								
									
										7
									
								
								templates/CentOS/7/etc/logrotate.d/btmp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								templates/CentOS/7/etc/logrotate.d/btmp
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| # no packages own btmp -- we'll rotate it here | ||||
| /var/log/btmp { | ||||
|     missingok | ||||
|     monthly | ||||
|     create 0660 root utmp | ||||
|     rotate 1 | ||||
| } | ||||
							
								
								
									
										8
									
								
								templates/CentOS/7/etc/logrotate.d/wtmp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								templates/CentOS/7/etc/logrotate.d/wtmp
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| # no packages own wtmp -- we'll rotate it here | ||||
| /var/log/wtmp { | ||||
|     missingok | ||||
|     monthly | ||||
|     create 0664 root utmp | ||||
|     minsize 1M | ||||
|     rotate 1 | ||||
| } | ||||
							
								
								
									
										20
									
								
								templates/CentOS/8/etc/logrotate.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								templates/CentOS/8/etc/logrotate.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| # see "man logrotate" for details | ||||
| # rotate log files weekly | ||||
| daily | ||||
|  | ||||
| # keep 4 weeks worth of backlogs | ||||
| rotate {{ log_retention_days }} | ||||
|  | ||||
| # create new (empty) log files after rotating old ones | ||||
| create | ||||
|  | ||||
| # use date as a suffix of the rotated file | ||||
| dateext | ||||
|  | ||||
| # uncomment this if you want your log files compressed | ||||
| compress | ||||
|  | ||||
| # packages drop log rotation information into this directory | ||||
| include /etc/logrotate.d | ||||
|  | ||||
| # system-specific logs may be also be configured here. | ||||
							
								
								
									
										7
									
								
								templates/CentOS/8/etc/logrotate.d/btmp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								templates/CentOS/8/etc/logrotate.d/btmp
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| # no packages own btmp -- we'll rotate it here | ||||
| /var/log/btmp { | ||||
|     missingok | ||||
|     monthly | ||||
|     create 0660 root utmp | ||||
|     rotate 1 | ||||
| } | ||||
							
								
								
									
										8
									
								
								templates/CentOS/8/etc/logrotate.d/wtmp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								templates/CentOS/8/etc/logrotate.d/wtmp
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| # no packages own wtmp -- we'll rotate it here | ||||
| /var/log/wtmp { | ||||
|     missingok | ||||
|     monthly | ||||
|     create 0664 root utmp | ||||
|     minsize 1M | ||||
|     rotate 1 | ||||
| } | ||||
		Reference in New Issue
	
	Block a user