This role will manage a FreeBSD installation and from package upgrade to src compile.
No requirement
This roles relies on these variables:
- base_compile: boolean variable used as flag for source code compile (using build method).
- update: used as enumerative it could be simple or full, when is settled to "simple" only the target host will be updated, when is settled to "full" also the jails (if there any) will be updated.
- version and branch: in case of a major (or minor) release set this variable (like when you type
freebsd-update upgrade -r <version>-<branch>
) for instance a release could be 12.0-RELEASE or 13.0-CURRENT, where version=12.0 and branch=RELEASE - handle_ports: used in case of port fetch or extract (using
portsnap
) - components: is a list of components of the main system like ports, src, base-dbg (see bsdinstall)
No dependencies
This is an example playbook:
- name: FreeBSD
hosts: all
become: true
vars:
- components:
- src
roles:
- { role: freebsd-ansible, base_compile: true, release: "12.0-RELEASE"}
BSD