diff options
author | clarkzjw <[email protected]> | 2023-01-13 14:26:30 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-01-13 14:26:30 -0800 |
commit | a5cd7d1f47d5de65682fbfc3ae0ebbbb4835853f (patch) | |
tree | 539af171ef7130605853fa912db76491e0a923d6 | |
parent | a67514529bf51b776feeb1724ff23079b9549718 (diff) | |
download | homelab-a5cd7d1f47d5de65682fbfc3ae0ebbbb4835853f.tar.gz |
setup zfs
-rw-r--r-- | clarkzjw.ca/config/atlas/README.md | 13 | ||||
-rw-r--r-- | clarkzjw.ca/config/atlas/init.yaml | 2 | ||||
-rw-r--r-- | clarkzjw.ca/config/atlas/roles/debian_init/tasks/main.yaml | 8 | ||||
-rw-r--r-- | clarkzjw.ca/config/atlas/roles/init/tasks/main.yaml | 6 | ||||
-rw-r--r-- | clarkzjw.ca/config/atlas/setup.yaml | 2 |
5 files changed, 29 insertions, 2 deletions
diff --git a/clarkzjw.ca/config/atlas/README.md b/clarkzjw.ca/config/atlas/README.md index 228236a..7eb8ffb 100644 --- a/clarkzjw.ca/config/atlas/README.md +++ b/clarkzjw.ca/config/atlas/README.md | |||
@@ -2,3 +2,16 @@ | |||
2 | 2 | ||
3 | Hostname: atlas | 3 | Hostname: atlas |
4 | Usage: HomeLab Main NAS | 4 | Usage: HomeLab Main NAS |
5 | |||
6 | ## Step | ||
7 | |||
8 | ### Init | ||
9 | |||
10 | ```bash | ||
11 | ansible-playbook init.yaml -K -k | ||
12 | ``` | ||
13 | |||
14 | ### Setup | ||
15 | ```bash | ||
16 | ansible-playbook setup.yaml | ||
17 | ``` | ||
diff --git a/clarkzjw.ca/config/atlas/init.yaml b/clarkzjw.ca/config/atlas/init.yaml index 3226121..9415d6f 100644 --- a/clarkzjw.ca/config/atlas/init.yaml +++ b/clarkzjw.ca/config/atlas/init.yaml | |||
@@ -3,6 +3,8 @@ | |||
3 | hosts: storinator | 3 | hosts: storinator |
4 | remote_user: root | 4 | remote_user: root |
5 | gather_facts: true | 5 | gather_facts: true |
6 | vars: | ||
7 | ansible_ssh_common_args: "-J pve" | ||
6 | 8 | ||
7 | roles: | 9 | roles: |
8 | - role: init | 10 | - role: init |
diff --git a/clarkzjw.ca/config/atlas/roles/debian_init/tasks/main.yaml b/clarkzjw.ca/config/atlas/roles/debian_init/tasks/main.yaml index 845af8d..4cfc23d 100644 --- a/clarkzjw.ca/config/atlas/roles/debian_init/tasks/main.yaml +++ b/clarkzjw.ca/config/atlas/roles/debian_init/tasks/main.yaml | |||
@@ -39,12 +39,18 @@ | |||
39 | - name: Install ZFS | 39 | - name: Install ZFS |
40 | apt: | 40 | apt: |
41 | name: | 41 | name: |
42 | - linux-headers-amd64 | 42 | - linux-headers-{{ ansible_kernel }} |
43 | - zfsutils-linux | 43 | - zfsutils-linux |
44 | - zfs-dkms | ||
44 | update_cache: true | 45 | update_cache: true |
45 | fail_on_autoremove: yes | 46 | fail_on_autoremove: yes |
46 | default_release: "{{ ansible_distribution_release | lower }}-backports" | 47 | default_release: "{{ ansible_distribution_release | lower }}-backports" |
47 | 48 | ||
49 | - name: Load zfs kernel module | ||
50 | modprobe: | ||
51 | name: zfs | ||
52 | state: present | ||
53 | |||
48 | - name: Clean unneeded packages | 54 | - name: Clean unneeded packages |
49 | apt: | 55 | apt: |
50 | autoremove: true | 56 | autoremove: true |
diff --git a/clarkzjw.ca/config/atlas/roles/init/tasks/main.yaml b/clarkzjw.ca/config/atlas/roles/init/tasks/main.yaml index eb3f03b..cc69403 100644 --- a/clarkzjw.ca/config/atlas/roles/init/tasks/main.yaml +++ b/clarkzjw.ca/config/atlas/roles/init/tasks/main.yaml | |||
@@ -16,3 +16,9 @@ | |||
16 | name: clarkzjw | 16 | name: clarkzjw |
17 | groups: wheel | 17 | groups: wheel |
18 | append: yes | 18 | append: yes |
19 | |||
20 | - name: Set authorized keys taken from url | ||
21 | authorized_key: | ||
22 | user: clarkzjw | ||
23 | state: present | ||
24 | key: https://github.com/clarkzjw.keys | ||
diff --git a/clarkzjw.ca/config/atlas/setup.yaml b/clarkzjw.ca/config/atlas/setup.yaml index 34622c8..444e331 100644 --- a/clarkzjw.ca/config/atlas/setup.yaml +++ b/clarkzjw.ca/config/atlas/setup.yaml | |||
@@ -5,4 +5,4 @@ | |||
5 | 5 | ||
6 | roles: | 6 | roles: |
7 | - role: debian_init | 7 | - role: debian_init |
8 | - role: samba | 8 | # - role: samba |