workstation/roles/distro/tasks/freebsd.yml

107 lines
2.3 KiB
YAML
Raw Normal View History

---
- name: Install FreeBSD core packages
become: true
pkgng:
name: drm-kmod en-freebsd-doc git mate pkg py36-ansible sudo xdm xorg xterm
state: present
- name: Install FreeBSD additional packages
become: true
pkgng:
name: '{{ packages }}'
state: present
vars:
packages:
- dbus
- emacs
2019-10-14 08:16:43 +00:00
- en_GB-libreoffice
- firefox-esr
- fusefs-ntfs
- galculator
- git-gui
- gnu-watch
- gnupg
- iosevka
2019-10-14 08:16:43 +00:00
- libreoffice
- mc
- mpv
- nextcloudclient
- nmap
- openvpn
2019-10-11 14:07:46 +00:00
- py36-psutil
- redshift
- remmina
- remmina-plugin-rdp
2019-10-10 18:51:07 +00:00
- rubygem-asciidoctor
- rxvt-unicode
- seahorse
- sqlite3
- tmux
- vim
- xinput
- zsh
- name: Start DBUS service
become: true
service:
name: dbus
state: started
enabled: yes
- name: Enable XDM
become: true
lineinfile:
path: /etc/ttys
2019-10-14 20:43:29 +00:00
regexp: '^ttyv8\s.*'
line: 'ttyv8 "/usr/local/bin/xdm -nodaemon" xterm on secure'
2019-10-14 08:04:40 +00:00
- name: Set xorg keyboard layout
become: true
copy:
src: keyboard-gb.conf
dest: /usr/local/etc/X11/xorg.conf.d/keyboard-gb.conf
2019-10-14 08:43:42 +00:00
- name: Disable core dumps
become: true
sysctl:
name: kern.coredump
value: '0'
sysctl_set: yes
- name: Use IPv6 temporary addresses (sysctl.conf)
become: true
sysctl:
name: net.inet6.ip6.use_tempaddr
value: '1'
sysctl_set: yes
- name: Prefer IPv6 temporary addresses (sysctl.conf)
become: true
sysctl:
name: net.inet6.ip6.prefer_tempaddr
value: '1'
sysctl_set: yes
- name: Disable VT bell
become: true
sysctl:
name: kern.vt.enable_bell
value: '0'
sysctl_set: yes
- name: Enable IPv6 privacy (rc.conf)
become: true
lineinfile:
path: /etc/rc.conf
regexp: '^ipv6_privacy=.*'
line: 'ipv6_privacy="YES"'
- name: Set wlan0 arguments
become: true
lineinfile:
path: /etc/rc.conf
regexp: '^create_args_wlan0=.*'
line: 'create_args_wlan0="country GB"'
- name: Enable WPA/DHCP for wlan0
become: true
lineinfile:
path: /etc/rc.conf
regexp: '^ifconfig_wlan0=.*'
line: 'ifconfig_wlan0="WPA SYNCDHCP"'
- name: Enable IPv6 for wlan0
become: true
lineinfile:
path: /etc/rc.conf
regexp: '^ifconfig_wlan0_ipv6=.*'
line: 'ifconfig_wlan0_ipv6="inet6 accept_rtadv"'