fine tuned storage creation and attachment
This commit is contained in:
@@ -4,6 +4,33 @@
|
||||
state: present
|
||||
name: "{{ packages }}"
|
||||
|
||||
- command: which cpdup
|
||||
register: result
|
||||
# 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"
|
||||
|
||||
Reference in New Issue
Block a user