From f2cf42b92ebb5c0422fd1f6807b493d6ba443054 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o?= <theo@le-filament.com> Date: Thu, 6 Jan 2022 09:53:47 +0100 Subject: [PATCH] add a cron job to update available packages every day --- tasks/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 7c2b260..3c7c012 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -144,3 +144,11 @@ groups: docker append: true when: inventory_hostname in groups.docker + +- name: add cron job to update available packages every day + cron: + name: apt update + minute: "42" + hour: "7" + job: /usr/bin/apt update + when: inventory_hostname in groups.full_maintenance -- GitLab