Skip to content

About

Debian 10 Ansible maintenance role

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Debian maintenance tasks

This task is meant to clean up your Debian 10 (butster) from time to time.

This task executes:

  • Clean up stopped docker containers.
  • Clean up unused docker networks.
  • Clean up unused docker images.
  • Clear apt cache.
  • Refresh gpg keys.
  • Delete all compressed logs on /var/log and subdirectories.

This image DON'T purge docker volumes for the sake of safety

Example playbook

- hosts: all
  vars:
    maintenance_script:
      apt update
      apt upgrade
  tasks:
  - name: My things
    debug: msg="Some additional task here"
  roles:
    - opsxcq.linux_maintenance

Example requirements.yml

- src: git+https://github.com/opsxcq/ansible-role-linux-maintenance.git
  name: "opsxcq.linux_maintenance"

About

Debian 10 Ansible maintenance role

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors