Ansible role. FreeBSD. Post-install configuration: aliases, apcupsd, authorized keys, cron, fstab, gitserver, hostapd, hostname, hosts, libmap, loader.conf, make.conf, motd, nfsd, ntpd, ntpdate, procmail, resolvconf.conf, smartd, sudoers, ssh, swap, sysctl, timezone, users, packages and ports, periodic.conf, overlays, wpa_supplicant, wip ...
None.
Review defaults and examples in vars.
By default freebsd_install_method is set to install packages. Installation is faster. But, later, after having upgraded from the ports (portmaster -a) switch the method to ports.
freebsd_install_method: "packages"
#freebsd_install_method: "ports"
#freebsd_use_packages: "yes"
Optionaly the packages can be built by freebsd_poudriere and installed by freebsd_packages
Role freebsd_ports will install packages if this option is set.
#freebsd_install_method: "packages"
freebsd_install_method: "ports"
freebsd_use_packages: "yes"
- Change shell to /bin/sh.
ansible host -e 'ansible_shell_type=csh ansible_shell_executable=/bin/csh' -a 'sudo pw usermod user -s /bin/sh'
- Install role.
ansible-galaxy install vbotka.freebsd_postinstall
- Fit variables.
editor vbotka.freebsd_postinstall/vars/main.yml
- Create playbook.
cat freebsd-postinstall.yml
- hosts: host
roles:
- vbotka.ansible-freebsd_postinstall
- Configure the system.
ansible-playbook freebsd-postinstall.yml
- FreeBSD handbook: Post-Installation
- aliases - FreeBSD handbook: 28.3. Sendmail Configuration Files
- apcupsd - FreeBSD diary: Configuring a UPS daemon
- cron - FreeBSD handbook: 11.3. Configuring cron
- fstab - FreeBSD handbook: 3.7. Mounting and Unmounting File Systems
- git - FreeBSD forum: How to setup a Git repository
- git - Getting Git on a Server
- hostapd - Atheros wireless driver support
- loader.conf - FreeBSD handbook: FreeBSD Boot Process
- make.conf - FreeBSD forum: Prioritizing SSL/TLS in make.conf
- make.conf - FreeBSD wiki: Design for Flavors and Sub Packages
- make.conf - GNU emacs flavours in FreeBSD
- nfs - FreeBSD handbook: Network File System (NFS)
- ntp - FreeBSD handbook: Clock Synchronization with NTP
- ntp - FreeBSD forum: Testing NTP
- ntp - NTP Support Wiki
- ntp - How to use pool.ntp.org
- periodic.conf - FreeBSD forum: periodic and cron doubt
- ports - FreeBSD handbook: Upgrading Ports Using Portmaster
- procmail - Documentation Project
- resolv.conf - FreeBSD handbook: 11.8. Configuration Files
- smartd - FreeBSD forum: camcontrol hdd smart status
- ssh - FreeBSD handbook: 13.8. OpenSSH
- sudo - FreeBSD handbook: Shared Administration with Sudo
- swap - FreeBSD handbook: Adding Swap Space
- sysctl - FreeBSD handbook: 11.9. Tuning with sysctl
- timezone - How to set up FreeBSD for my region?
- users - FreeBSD handbook: 6.27. Adding Users and Groups
- wpa_supplicant
- wpa_supplicant - 31.3. Wireless Networking