From 0da725c7992e0c61b265a5bc4dbd1886ff4ddaa6 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 7 Jul 2025 11:44:49 +0700 Subject: [PATCH] Remove playbooks folder --- playbooks/system-maintenance.yml | 41 -------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 playbooks/system-maintenance.yml diff --git a/playbooks/system-maintenance.yml b/playbooks/system-maintenance.yml deleted file mode 100644 index bf58955..0000000 --- a/playbooks/system-maintenance.yml +++ /dev/null @@ -1,41 +0,0 @@ ---- -- name: System Maintenance Tasks - hosts: all - become: yes - tasks: - - name: Update package repositories - apt: - update_cache: yes - - - name: Install security updates - apt: - upgrade: dist - - - name: Clean temporary files - file: - path: /tmp - state: absent - notify: Recreate /tmp - - - name: Restart services if needed - shell: | - needs_restart=$(needs-restarting || true) - if [ -n "$needs_restart" ]; then - systemctl restart apache2 - fi - when: ansible_os_family == "Debian" - - - name: Generate system health report - shell: | - echo "System Health Report - $(date)" > /var/log/system_health.log - uptime >> /var/log/system_health.log - df -h >> /var/log/system_health.log - free -m >> /var/log/system_health.log - register: health_report - - handlers: - - name: Recreate /tmp - file: - path: /tmp - state: directory - mode: '1777'