mirror of
https://github.com/geerlingguy/ansible-role-docker.git
synced 2025-08-11 13:46:32 +02:00
Fix idempotency
This commit is contained in:
parent
d44e0a20ff
commit
ff11a4a2a2
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user