From ff11a4a2a240ab15b6bb2e228e0d8b9a37a3d426 Mon Sep 17 00:00:00 2001 From: Robin Opletal Date: Sun, 13 Dec 2020 20:23:47 +0100 Subject: [PATCH] Fix idempotency --- tasks/setup-Alpine.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tasks/setup-Alpine.yml b/tasks/setup-Alpine.yml index 68637e7..bb70300 100644 --- a/tasks/setup-Alpine.yml +++ b/tasks/setup-Alpine.yml @@ -2,6 +2,7 @@ - name: Update cache apk: update_cache: true + changed_when: false - name: Make sure dependencies are present apk: @@ -50,15 +51,15 @@ when: swapaccount.changed and configure_swapaccount - debug: - msg: | - For memory and swap limit support, - please follow https://wiki.alpinelinux.org/wiki/Docker#Extlinux + msg: | + For memory and swap limit support, + please follow https://wiki.alpinelinux.org/wiki/Docker#Extlinux when: bootloader.stdout == "syslinux" - debug: - msg: | - For memory and swap limit support, - please follow https://wiki.alpinelinux.org/wiki/Docker#Extlinux + msg: | + For memory and swap limit support, + please follow https://wiki.alpinelinux.org/wiki/Docker#Extlinux when: bootloader.stdout == "grub" and not configure_swapaccount - name: Reload facts