2019-10-10 18:19:05 +00:00
|
|
|
---
|
2019-10-21 08:09:44 +00:00
|
|
|
- name: Install FreeBSD core CLI packages
|
2019-10-10 22:46:40 +00:00
|
|
|
become: true
|
|
|
|
pkgng:
|
2019-10-21 08:09:44 +00:00
|
|
|
name: en-freebsd-doc git pkg py36-ansible sudo
|
2019-10-10 22:46:40 +00:00
|
|
|
state: present
|
2019-10-21 08:09:44 +00:00
|
|
|
- name: Install FreeBSD additional CLI packages
|
2019-10-10 18:19:05 +00:00
|
|
|
become: true
|
|
|
|
pkgng:
|
|
|
|
name: '{{ packages }}'
|
|
|
|
state: present
|
|
|
|
vars:
|
|
|
|
packages:
|
|
|
|
- fusefs-ntfs
|
|
|
|
- gnu-watch
|
|
|
|
- gnupg
|
|
|
|
- mc
|
|
|
|
- nmap
|
|
|
|
- openvpn
|
2019-10-11 14:07:46 +00:00
|
|
|
- py36-psutil
|
2019-10-10 18:51:07 +00:00
|
|
|
- rubygem-asciidoctor
|
2019-10-10 18:19:05 +00:00
|
|
|
- sqlite3
|
|
|
|
- tmux
|
|
|
|
- vim
|
|
|
|
- zsh
|
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"'
|