aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-01-13 14:29:06 -0800
committerclarkzjw <[email protected]>2023-01-13 14:29:06 -0800
commit966596fd3f0e9b60aad55a05c5defa33b9f7e03f (patch)
tree30606a76d15d8d10b1515deba383af3f27f83528
parenta5cd7d1f47d5de65682fbfc3ae0ebbbb4835853f (diff)
downloadhomelab-966596fd3f0e9b60aad55a05c5defa33b9f7e03f.tar.gz
add ansible config for init, zfs
-rw-r--r--clarkzjw.ca/config/atlas/README.md14
-rw-r--r--clarkzjw.ca/config/atlas/roles/samba/tasks/main.yaml7
-rw-r--r--clarkzjw.ca/config/atlas/roles/samba/templates/smb.conf.j2 (renamed from clarkzjw.ca/config/atlas/roles/samba/templates/smb.conf)0
-rw-r--r--clarkzjw.ca/config/atlas/samba.yaml7
-rw-r--r--clarkzjw.ca/config/atlas/setup.yaml1
5 files changed, 28 insertions, 1 deletions
diff --git a/clarkzjw.ca/config/atlas/README.md b/clarkzjw.ca/config/atlas/README.md
index 7eb8ffb..5525ea9 100644
--- a/clarkzjw.ca/config/atlas/README.md
+++ b/clarkzjw.ca/config/atlas/README.md
@@ -15,3 +15,17 @@ ansible-playbook init.yaml -K -k
15```bash 15```bash
16ansible-playbook setup.yaml 16ansible-playbook setup.yaml
17``` 17```
18
19### Import zfs pool
20```bash
21zpool status
22zpool import pool1
23
24...
25zpool export pool1
26```
27
28### Setup Samba
29```bash
30ansible-playbook samba.yaml
31``` \ No newline at end of file
diff --git a/clarkzjw.ca/config/atlas/roles/samba/tasks/main.yaml b/clarkzjw.ca/config/atlas/roles/samba/tasks/main.yaml
index 0466571..7c1edec 100644
--- a/clarkzjw.ca/config/atlas/roles/samba/tasks/main.yaml
+++ b/clarkzjw.ca/config/atlas/roles/samba/tasks/main.yaml
@@ -5,3 +5,10 @@
5 - smbclient 5 - smbclient
6 - cifs-utils 6 - cifs-utils
7 update_cache: true 7 update_cache: true
8
9
10- name: render samba config file
11 template:
12 src: smb.conf.j2
13 dest: "/etc/samba/smb.conf"
14 mode: 0644 \ No newline at end of file
diff --git a/clarkzjw.ca/config/atlas/roles/samba/templates/smb.conf b/clarkzjw.ca/config/atlas/roles/samba/templates/smb.conf.j2
index 5b59497..5b59497 100644
--- a/clarkzjw.ca/config/atlas/roles/samba/templates/smb.conf
+++ b/clarkzjw.ca/config/atlas/roles/samba/templates/smb.conf.j2
diff --git a/clarkzjw.ca/config/atlas/samba.yaml b/clarkzjw.ca/config/atlas/samba.yaml
new file mode 100644
index 0000000..374943c
--- /dev/null
+++ b/clarkzjw.ca/config/atlas/samba.yaml
@@ -0,0 +1,7 @@
1- name: Setup Samba
2 hosts: storinator
3 remote_user: clarkzjw
4 gather_facts: true
5
6 roles:
7 - role: samba
diff --git a/clarkzjw.ca/config/atlas/setup.yaml b/clarkzjw.ca/config/atlas/setup.yaml
index 444e331..08592d3 100644
--- a/clarkzjw.ca/config/atlas/setup.yaml
+++ b/clarkzjw.ca/config/atlas/setup.yaml
@@ -5,4 +5,3 @@
5 5
6 roles: 6 roles:
7 - role: debian_init 7 - role: debian_init
8# - role: samba
Powered by cgit v1.2.3 (git 2.41.0)