Skip to content

daverod24/logrotate-ansible-dave

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logrotate-ansible-dave

ansible-playbook -i inventory site.yml -vvv

#### crear el archivo inventory
[local]
127.0.0.1 ansible_connection=local ansible_user=david ansible_sudo_password="becomepass"

[server1]
apache2 ansible_connection=ssh ansible_user=devops ansible_sudo_password="becomepass"

vars: logrotate_scripts: - name: nginx-options path: /var/log/nginx/options.log options: - daily - weekly - size 25M - rotate 7 - missingok - compress - delaycompress - copytruncate

  - name: nginx-scripts
    path: /var/log/nginx/scripts.log
    options:
      - daily
      - weekly
      - size 25M
    scripts:
      postrotate: "echo test"

About

para implementar un logrotate en ubuntu y rhel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages