aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-02-28 13:09:01 +0800
committerAaron LI <aly@aaronly.me>2018-03-14 11:28:44 +0800
commit26ec9d5b119dc58da5a6957a5891b86ab053efe5 (patch)
tree53fa9c0cc8668f000119e9bdcad21aeb759791b5
parent44f8bac2bf09c6f2a162079d4acd0a08686ce6e7 (diff)
downloadansible-dfly-vps-26ec9d5b119dc58da5a6957a5891b86ab053efe5.tar.bz2
basic: tune some settings in rc.conf and loader.conf
-rw-r--r--roles/basic/tasks/main.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/roles/basic/tasks/main.yml b/roles/basic/tasks/main.yml
index 30eee09..2c89e1e 100644
--- a/roles/basic/tasks/main.yml
+++ b/roles/basic/tasks/main.yml
@@ -1,4 +1,26 @@
---
+- name: rc.conf - tune basic services
+ blockinfile:
+ path: /etc/rc.conf
+ marker: "# {mark} ANSIBLE MANAGED - basic"
+ block: |
+ nfs_reserved_port_only="YES"
+ nfs_client_enable="NO"
+ rpc_umntall_enable="NO"
+ mixer_enable="NO"
+ blanktime="NO"
+
+- name: loader.conf - tune some variables
+ blockinfile:
+ path: /boot/loader.conf
+ marker: "# {mark} ANSIBLE MANAGED - basic"
+ block: |
+ vm.dma_reserved=16m
+ hw.x2apic_enable=1
+ hint.xhci.0.disabled=1
+ hint.ehci.0.disabled=1
+ hint.ahci.disabled=1
+
- name: pkg - disable repo auto update
lineinfile:
path: /usr/local/etc/pkg.conf