Skip to content

Instantly share code, notes, and snippets.

@theory14
theory14 / gist:496a77e49f87a74faf21d7b8ce74fd00
Created April 30, 2017 20:29
FreeBSD 11.0 release default zfs list
NAME USED AVAIL REFER MOUNTPOINT
zroot 301M 105G 96K /zroot
zroot/ROOT 299M 105G 96K none
zroot/ROOT/default 299M 105G 299M /
zroot/tmp 96K 105G 96K /tmp
zroot/usr 424K 105G 96K /usr
zroot/usr/home 136K 105G 136K /usr/home
zroot/usr/ports 96K 105G 96K /usr/ports
zroot/usr/src 96K 105G 96K /usr/src
zroot/var 620K 105G 96K /var
@theory14
theory14 / main.yaml
Created September 12, 2015 10:35
Ansible role for updating FreeBSD machines with freebsd-update and pkg
---
- name: Check status of jailing
shell: "sysctl security.jail.jailed | cut -d: -f2 | tr -d ' '"
register: is_jail
when: "ansible_os_family == 'FreeBSD' "
- name: Fetch and Install Updates
command: "{{ item }}"
when: "ansible_os_family == 'FreeBSD' and is_jail.stdout == '0'"