From 7a0935cecfeb3511fea9a8cf6963131305166f83 Mon Sep 17 00:00:00 2001 From: Stefan Bethke Date: Sun, 11 Aug 2024 21:08:57 +0200 Subject: [PATCH] Make sure anacron is installed --- playbooks/roles/docker_compose/tasks/main.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/playbooks/roles/docker_compose/tasks/main.yaml b/playbooks/roles/docker_compose/tasks/main.yaml index 63cb9fc..3a434ec 100644 --- a/playbooks/roles/docker_compose/tasks/main.yaml +++ b/playbooks/roles/docker_compose/tasks/main.yaml @@ -98,6 +98,12 @@ # changed_when: (docker_compose__ps_json_before_up.stdout | from_json | community.general.json_query('[].ID') | sort) # != (docker_compose__ps_json_after_up.stdout | from_json | community.general.json_query('[].ID') | sort) +- name: Make sure anacron is installed + become: true + ansible.builtin.package: + name: anacron + state: present + - name: Install automatic update cron job become: true ansible.builtin.cron: