source: main/waeup-ansible/roles/core/tasks/grub.yml @ 17132

Last change on this file since 17132 was 13995, checked in by uli, 9 years ago

Add roles to enable swap-accounting.

Swap accounting is at least used widely with docker
containers and managed by kernel cgroups. We might be
able, however to use it in regular production (w/o any
dockers).

To enable swap-accounting, respective settings must
be enabled in kernel during boot time. They are normally
disabled on Ubuntu.

We use the (as we think) proper mechanism to add
respective cmdline args in grub config.

Of course thses settings take effect only after reboot.

File size: 230 bytes
Line 
1---
2- name: "add swap accounting options"
3  copy:
4    src="swap_accounting.cfg"
5    dest="/etc/default/grub.d/swap_accounting.cfg"
6    owner=root
7    group=root
8    mode=644
9  become: true
10  notify: update grub
11  tags:
12    - grub
Note: See TracBrowser for help on using the repository browser.