aboutsummaryrefslogtreecommitdiffstats
path: root/roles/basic/tasks/main.yml
blob: 498155bc0a6a286f5b74e0227e625729d5c19823 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
- 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
    regexp: "^#?REPO_AUTOUPDATE"
    line: "REPO_AUTOUPDATE = false;"

- name: pkg - update repos
  command: pkg update

- name: pkg - install packages
  pkgng:
    name: "{{ item }}"
    state: present
  with_items:
    - tmux
    - vim-lite
    - mosh
    - rsync
    - htop

- name: vim - add basic configurations
  blockinfile:
    path: /usr/local/etc/vim/vimrc
    marker: '" {mark} ANSIBLE MANAGED - basic'
    block: |
      set background=dark
      colorscheme desert