mtze.docker_swap_grub
Role Name
This role fixes the
WARNING: No swap limit support
warning in docker info by reconfiguring grub.
The docker documentation mentions this issue and describes how to solve it by reconfiguring grub.
TLDR:
This role updates /etc/defaults/grub to inclunde
GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"
Requirements
None
Role Variables
See defaults/main.yml.
Dependencies
None
Example Playbook
Update grub and reboot
- hosts: docker_hosts
roles:
- role: mtze.docker-swap-grub
vars:
Update grub and prevent reboot
- hosts: docker_hosts
roles:
- role: mtze.docker-swap-grub
vars:
allow_reboot: false
License
MIT
Install
ansible-galaxy install mtze.docker_swap_grubLicense
Unknown
Downloads
561
Owner
Software and Infrastructure Architect, Agile Leader, Educator at Heart, Researcher at TUM, Diver, Music Lover
