aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--clarkzjw.ca/config/atlas/README.md13
-rw-r--r--clarkzjw.ca/config/atlas/init.yaml2
-rw-r--r--clarkzjw.ca/config/atlas/roles/debian_init/tasks/main.yaml8
-rw-r--r--clarkzjw.ca/config/atlas/roles/init/tasks/main.yaml6
-rw-r--r--clarkzjw.ca/config/atlas/setup.yaml2
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
3Hostname: atlas 3Hostname: atlas
4Usage: HomeLab Main NAS 4Usage: HomeLab Main NAS
5
6## Step
7
8### Init
9
10```bash
11ansible-playbook init.yaml -K -k
12```
13
14### Setup
15```bash
16ansible-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
Powered by cgit v1.2.3 (git 2.41.0)