deploy-base/play.yml

60 lines
2.1 KiB
YAML
Raw Normal View History

2019-02-26 03:49:51 +00:00
---
2023-08-31 01:48:50 +00:00
- hosts: "{{ target | default('all') }}" # target inventory group, default all
gather_facts: yes
vars:
2023-08-31 01:48:50 +00:00
# auto_update: "true" # would configure dnf-automatic
hardened_ssh_port: "1181" # tcp is assumed in selinux/firewalld allowance
URL_PUBKEYS: "https://github.com/joshlay.keys" # https://github.com/user.keys
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
params:
2021-04-05 05:16:05 +00:00
- option: type
value: "disk"
- 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"
- 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"
2023-08-31 01:48:50 +00:00
- option: dev.raid.speed_limit_min
value: "600000"
- option: dev.raid.speed_limit_max
value: "9000000"
- option: net.core.somaxconn
value: "8192"
2019-02-26 03:49:51 +00:00
roles:
2023-08-31 01:48:50 +00:00
# - {role: btrfs} # sets up scrubbing
2019-02-26 03:49:51 +00:00
- {role: bootstrap}
- {role: tuned}
- {role: install-packages}
2023-08-31 01:48:50 +00:00
- {role: update-packages} # depends on 'is_atomic' in bootstrap
- {role: fedora-upgrade} # consider renaming to dist-upgrade / supporting more than fedora
2019-02-26 03:49:51 +00:00
- {role: create-user}
- {role: hardening}
2023-08-31 01:48:50 +00:00
- {role: docker}