Skip to content

Commit

Permalink
Add SAN role and hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-c committed Nov 29, 2023
1 parent 8e3f528 commit babfb9e
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hosts.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ scyther
scizor
rpi3 docker_install_compose=false

[san]
dodrio

[gui]
steelix
scyther
Expand Down
5 changes: 5 additions & 0 deletions local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@
roles:
- stream_host

- name: Install roles for SAN hosts
hosts: san
roles:
- san

- name: Install roles for GUI hosts
hosts: gui
roles:
Expand Down
3 changes: 3 additions & 0 deletions roles/san/meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
dependencies:
- role: contrib
11 changes: 11 additions & 0 deletions roles/san/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
- name: Install ZFS packages and utils
ansible.builtin.apt:
name: "{{ packages }}"
vars:
packages:
# ZFS packages
- linux-headers-amd64
- zfs-dkms
- zfsutils-linux
# utilities
- sanoid

0 comments on commit babfb9e

Please sign in to comment.