From 649ecca78507b84d764fc7ea72491895b40630c5 Mon Sep 17 00:00:00 2001 From: Morre Date: Thu, 1 Oct 2020 19:15:35 +0200 Subject: [PATCH] =?UTF-8?q?Update=20first=20so=20that=20we=20have=20a=20ca?= =?UTF-8?q?che.=20If=20we=20don=E2=80=99t,=20this=20will=20fail=20new=20ma?= =?UTF-8?q?chines?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tasks/main.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 401541a..5b16043 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,10 +1,4 @@ --- -- name: setup unattended updates - apt: - name: unattended-upgrades - purge: yes - state: "{% if update.unattended %}present{% else %}absent{% endif %}" - - name: update apt: update_cache: yes @@ -13,6 +7,12 @@ tags: - update +- name: setup unattended updates + apt: + name: unattended-upgrades + purge: yes + state: "{% if update.unattended %}present{% else %}absent{% endif %}" + - name: clean command: apt-get clean changed_when: False