From 026340219479321886991d47dc453fd07e07ecee Mon Sep 17 00:00:00 2001 From: Chris Croome <chris@webarchitects.co.uk> Date: Wed, 27 Sep 2017 10:09:03 +0100 Subject: [PATCH] delete the state file after the update --- roles/docker-upgrade/tasks/main.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/roles/docker-upgrade/tasks/main.yml b/roles/docker-upgrade/tasks/main.yml index 579ab8b..e33bc52 100644 --- a/roles/docker-upgrade/tasks/main.yml +++ b/roles/docker-upgrade/tasks/main.yml @@ -26,6 +26,11 @@ when: logchange.stdout != "" +- name: Update all packages + apt: + upgrade: dist + autoclean: yes + - name: Check if the Munin apt state file exists stat: path: "/var/lib/munin-node/plugin-state/nobody/plugin-apt.state" @@ -43,11 +48,6 @@ when: munin_apt_state.stat.exists == True -- name: Update all packages - apt: - upgrade: dist - autoclean: yes - - name: Restart Docker CE service: name: docker -- GitLab