Fix idempotency

This commit is contained in:
Robin Opletal 2020-12-13 20:23:47 +01:00
parent d44e0a20ff
commit ff11a4a2a2

View File

@ -2,6 +2,7 @@
- name: Update cache - name: Update cache
apk: apk:
update_cache: true update_cache: true
changed_when: false
- name: Make sure dependencies are present - name: Make sure dependencies are present
apk: apk:
@ -50,15 +51,15 @@
when: swapaccount.changed and configure_swapaccount when: swapaccount.changed and configure_swapaccount
- debug: - debug:
msg: | msg: |
For memory and swap limit support, For memory and swap limit support,
please follow https://wiki.alpinelinux.org/wiki/Docker#Extlinux please follow https://wiki.alpinelinux.org/wiki/Docker#Extlinux
when: bootloader.stdout == "syslinux" when: bootloader.stdout == "syslinux"
- debug: - debug:
msg: | msg: |
For memory and swap limit support, For memory and swap limit support,
please follow https://wiki.alpinelinux.org/wiki/Docker#Extlinux please follow https://wiki.alpinelinux.org/wiki/Docker#Extlinux
when: bootloader.stdout == "grub" and not configure_swapaccount when: bootloader.stdout == "grub" and not configure_swapaccount
- name: Reload facts - name: Reload facts