30 lines
747 B
YAML
30 lines
747 B
YAML
---
|
|
##############################################################################
|
|
# debian / ubuntu
|
|
|
|
- name: sysstat enable
|
|
tags: sysstat
|
|
lineinfile:
|
|
dest: /etc/default/sysstat
|
|
regexp: "^ENABLED="
|
|
line: 'ENABLED="true"'
|
|
|
|
- name: sysstat every minute
|
|
tags: sysstat
|
|
patch:
|
|
src: sysstat_minutely.patch
|
|
dest: /etc/cron.d/sysstat
|
|
|
|
- name: disable IPv6 in sysctl.conf
|
|
lineinfile:
|
|
dest: /etc/sysctl.conf
|
|
state: present
|
|
regexp: "^{{ item.a }}"
|
|
line: "{{ item.a }} = {{ item.v }}"
|
|
with_items:
|
|
- { a: "net.ipv6.conf.all.disable_ipv6", v: 1 }
|
|
- { a: "net.ipv6.conf.default.disable_ipv6", v: 1 }
|
|
- { a: "net.ipv6.conf.lo.disable_ipv6", v: 1 }
|
|
|
|
# vim: set tabstop=2 shiftwidth=2 expandtab smarttab:
|