8 lines
430 B
YAML
8 lines
430 B
YAML
---
|
|
- name: add boot parameters for docker
|
|
lineinfile:
|
|
path: /etc/default/grub
|
|
regexp: ^GRUB_CMDLINE_LINUX_DEFAULT=
|
|
line: 'GRUB_CMDLINE_LINUX_DEFAULT="quiet cgroup_enable=memory swapaccount=1{% if initramfs.network %} ip={{ initramfs.network.address }}::{{ initramfs.network.gateway }}:{{ initramfs.network.netmask }}:{{ inventory_hostname }}:{{ initramfs.network.interface }}:off{% endif %}"'
|
|
notify: update-grub
|