37 lines
909 B
YAML
37 lines
909 B
YAML
---
|
|
- name: Install Packages
|
|
community.general.pkgng:
|
|
state: present
|
|
name: "{{ packages }}"
|
|
|
|
# FIXME: remove the symlink in the release snapshot
|
|
- name: Remove old home sym link
|
|
shell: |
|
|
rm /home
|
|
touch /tmp/.ansible.home
|
|
args:
|
|
creates: "/tmp/.ansible.home"
|
|
|
|
- name: Setup home volume partition
|
|
shell: |
|
|
gpart create -s GPT da1
|
|
touch /tmp/.ansible.gpt
|
|
args:
|
|
creates: "/tmp/.ansible.gpt"
|
|
|
|
- name: Setup home fs type
|
|
shell: "gpart add -t freebsd-zfs -l {{ storage.home.name }} -a 1M {{ storage.home.device }}"
|
|
args:
|
|
creates: "/dev/da1p1"
|
|
|
|
|
|
- name: Create zpool using home volume
|
|
shell: "zpool create -f {{ storage.home.name }} {{ storage.home.device }}"
|
|
args:
|
|
creates: "/{{ storage.home.name }}"
|
|
|
|
- name: Create zfs home dataset
|
|
shell: "zfs create -o mountpoint={{ storage.home.mount }} {{ storage.home.name }}/home"
|
|
args:
|
|
creates: "/home"
|