Skip to content

clearminds/ansible-freebsd-postinstall

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

freebsd_postinstall

Build Status

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 ...

Requirements

None.

Variables

Review defaults and examples in vars.

freebsd_install_method

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

freebsd_use_packages

Role freebsd_ports will install packages if this option is set.

#freebsd_install_method: "packages"
freebsd_install_method: "ports"
freebsd_use_packages: "yes"

Workflow

  1. 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'
  1. Install role.
ansible-galaxy install vbotka.freebsd_postinstall
  1. Fit variables.
editor vbotka.freebsd_postinstall/vars/main.yml
  1. Create playbook.
cat freebsd-postinstall.yml
- hosts: host
  roles:
    - vbotka.ansible-freebsd_postinstall
  1. Configure the system.
ansible-playbook freebsd-postinstall.yml

License

license

Author Information

Vladimir Botka

References

About

Ansible role. Post-install configuration of FreeBSD.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%