2019-02-26 03:49:51 +00:00
|
|
|
---
|
|
|
|
- hosts: all
|
2020-06-04 02:15:43 +00:00
|
|
|
vars:
|
|
|
|
tuned_base_profile: "network-latency"
|
|
|
|
tuned_custom_profile:
|
|
|
|
name: tweaks
|
|
|
|
sections:
|
|
|
|
- name: main
|
|
|
|
params:
|
|
|
|
- option: summary
|
|
|
|
value: "Custom tuned profile created by jlay - virt. IO scheduler, TCP, etc"
|
|
|
|
- option: include
|
|
|
|
value: "{{ tuned_base_profile }}"
|
2021-04-05 05:16:05 +00:00
|
|
|
- name: virtsched
|
2020-06-04 02:15:43 +00:00
|
|
|
params:
|
2021-04-05 05:16:05 +00:00
|
|
|
- option: type
|
|
|
|
value: "disk"
|
2020-06-04 02:15:43 +00:00
|
|
|
- option: devices_udev_regex
|
|
|
|
value: "(ID_MODEL=QEMU_HARDDISK)|(ID_VENDOR=HC)"
|
|
|
|
- option: elevator
|
|
|
|
value: "mq-deadline"
|
2021-04-05 05:16:05 +00:00
|
|
|
- name: ssdnosched
|
|
|
|
params:
|
|
|
|
- option: type
|
|
|
|
value: "disk"
|
|
|
|
- option: devices_udev_regex
|
|
|
|
value: "(ID_ATA_ROTATION_RATE_RPM=0)"
|
|
|
|
- option: elevator
|
|
|
|
value: "none"
|
2020-06-04 02:23:25 +00:00
|
|
|
- name: sysctl
|
|
|
|
params:
|
|
|
|
- option: net.core.default_qdisc
|
|
|
|
value: "fq"
|
|
|
|
- option: net.ipv4.tcp_congestion_control
|
|
|
|
value: "bbr"
|
2021-04-05 05:16:05 +00:00
|
|
|
- option: net.core.rmem_max
|
|
|
|
value: "4194304"
|
|
|
|
- option: net.core.wmem_max
|
|
|
|
value: "1048576"
|
2019-02-26 03:49:51 +00:00
|
|
|
roles:
|
|
|
|
- {role: bootstrap}
|
2020-06-04 02:23:25 +00:00
|
|
|
- {role: tuned}
|
2020-01-02 04:01:24 +00:00
|
|
|
- {role: tmp-mount-fix}
|
2020-04-19 04:26:48 +00:00
|
|
|
- {role: install-packages}
|
2019-02-26 03:49:51 +00:00
|
|
|
- {role: update-packages}
|
2019-07-07 06:30:57 +00:00
|
|
|
- {role: fedora-upgrade}
|
2019-02-26 03:49:51 +00:00
|
|
|
- {role: create-user}
|
|
|
|
- {role: hardening}
|
2020-04-18 02:01:27 +00:00
|
|
|
# - {role: docker} # TODO: replace me with a generic container role, podman on EL based distros - Docker on Debian/Ubuntu
|
2019-02-26 03:49:51 +00:00
|
|
|
- {role: zfs}
|
|
|
|
- {role: sysctl}
|