freebsd_network
freebsd_network
Ansible role. FreeBSD. Configure network.
Feel free to share your feedback and report issues.
Requirements
None.
Role Variables
Review the defaults and examples in vars.
Dependencies
None.
Workflow
- Change shell on the remote host to /bin/sh if necessary
shell> ansible host -e 'ansible_shell_type=csh ansible_shell_executable=/bin/csh' -a 'sudo pw usermod user -s /bin/sh'
- Install role
shell> ansible-galaxy role install vbotka.freebsd_network
Fit variables to your needs.
Create playbook
shell> cat freebsd-network.yml
- hosts: host
roles:
- vbotka.freebsd_network
- Configure the system
shell> ansible-playbook freebsd-network.yml
Ansible lint
Use the configuration file .ansible-lint.local when running ansible-lint. Some rules might be disabled and some warnings might be ignored. See the notes in the configuration file.
shell> ansible-lint -c .ansible-lint.local
References
- FreeBSD handbook: Network
- FreeBSD handbook: Virtualization
- FreeBSD handbook: Advanced Networking
- FreeBSD handbook: Gateways and Routes