From 7820c7f862366aa537ea9b497d99f23015cbe2cb Mon Sep 17 00:00:00 2001 From: Shankar Mounesh Date: Sun, 12 Jun 2022 22:11:47 +0530 Subject: [PATCH] added autoremove and autoremove settings --- proxmox.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/proxmox.yml b/proxmox.yml index 1c1ef9d..d9d59af 100644 --- a/proxmox.yml +++ b/proxmox.yml @@ -23,31 +23,29 @@ tasks: - name: update package cache - apt: update_cache=yes + apt: + - update_cache=yes + - autoremove=yes + - autoclean=yes - - name: remove vim-nox - apt: - name: vim-nox - state: absent - - name: dist upgrade apt: upgrade=dist - name: add ansible-pull cron job cron: name: ansible auto-provision - minute: "*/10" + minute: "15" + hour: "1" user: root job: "ansible-pull -o -U https://git.bitsathy.ac.in/ShankarMounesh/ansible-proxmox.git proxmox.yml" - name: add reboot cronjob cron: name: reboot machine every sunday - minute: "*/8" - # hour: "1" - # weekday: "0" + minute: "*/5" + # hour: "2" user: root - job: "/usr/sbin/reboot" + job: "reboot"