updated README, added tags, fixed knownhosts, added cron mount

This commit is contained in:
2024-11-17 16:34:32 +01:00
parent c0f1f9051e
commit 9057c75b1f
10 changed files with 55 additions and 34 deletions

View File

@@ -4,13 +4,20 @@
state: present
name: "{{ packages }}"
# FIXME: remove the symlink in the release snapshot
# FIXME: remove the symlink in the next release snapshot
- name: Remove old home sym link
shell: |
rm /home
touch /tmp/.ansible.home
args:
creates: "/tmp/.ansible.home"
- name: Remove original cron tab dir
shell: |
rm -rf /var/cron/tabs
touch /tmp/.ansible.crontabs
args:
creates: "/tmp/.ansible.crontabs"
- name: Setup home volume partition
shell: |
@@ -20,17 +27,20 @@
creates: "/tmp/.ansible.gpt"
- name: Setup home fs type
shell: "gpart add -t freebsd-zfs -l {{ storage.home.name }} -a 1M {{ storage.home.device }}"
shell: |
gpart add -t freebsd-zfs -l {{ storage.volume.name }} -a 1M {{ storage.volume.device }}
touch /tmp/.ansible.add
args:
creates: "/dev/da1p1"
creates: "/tmp/.ansible.add"
- name: Create zpool using home volume
shell: "zpool create -f {{ storage.home.name }} {{ storage.home.device }}"
shell: "zpool create -f {{ storage.volume.name }} {{ storage.volume.device }}"
args:
creates: "/{{ storage.home.name }}"
creates: "/{{ storage.volume.name }}"
- name: Create zfs home dataset
shell: "zfs create -o mountpoint={{ storage.home.mount }} {{ storage.home.name }}/home"
loop: "{{ storage.mounts }}"
shell: "zfs create -o mountpoint={{ item.mount }} {{ storage.volume.name }}{{ item.name }}"
args:
creates: "/home"
creates: "{{ item.mount }}"