Ansible role. FreeBSD. Configure ZFS.
Feel free to share your feedback and report issues.
This role is needed to run tasks from sysctl.yml and loader.yml
- community.general
See defaults and examples in vars.
- Change the 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 roles and collections
shell> ansible-galaxy role install vbotka.freebsd_zfs
shell> ansible-galaxy role install vbotka.freebsd_postinstall
If necessary install the collection
shell> ansible-galaxy collection install community.general
-
Fit variables
-
Create the playbook
shell> cat freebsd-zfs.yml
- hosts: host
roles:
- vbotka.freebsd_zfs
- Configure the system
shell> ansible-playbook freebsd-zfs.yml
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