mtze.docker_swap_grub
Nom du rôle
Ce rôle corrige l'avertissement
WARNING: No swap limit support
dans docker info en reconfigurant grub.
La documentation de Docker mentionne ce problème et décrit comment le résoudre en reconfigurant grub.
Résumé :
Ce rôle met à jour /etc/defaults/grub pour inclure
GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"
Exigences
Aucune
Variables du rôle
Voir defaults/main.yml.
Dépendances
Aucune
Exemple de Playbook
Mettre à jour grub et redémarrer
- hosts: docker_hosts
roles:
- role: mtze.docker-swap-grub
vars:
Mettre à jour grub et empêcher le redémarrage
- hosts: docker_hosts
roles:
- role: mtze.docker-swap-grub
vars:
allow_reboot: false
Licence
MIT
À propos du projet
Configure GRUB to fix dockers - WARNING: No swap limit support
Installer
ansible-galaxy install mtze.docker_swap_grubLicence
Unknown
Téléchargements
562
Propriétaire
Software and Infrastructure Architect, Agile Leader, Educator at Heart, Researcher at TUM, Diver, Music Lover
