diff options
-rw-r--r-- | clarkzjw.ca/config/atlas/README.md | 14 | ||||
-rw-r--r-- | clarkzjw.ca/config/atlas/roles/samba/tasks/main.yaml | 7 | ||||
-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.yaml | 7 | ||||
-rw-r--r-- | clarkzjw.ca/config/atlas/setup.yaml | 1 |
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 |
16 | ansible-playbook setup.yaml | 16 | ansible-playbook setup.yaml |
17 | ``` | 17 | ``` |
18 | |||
19 | ### Import zfs pool | ||
20 | ```bash | ||
21 | zpool status | ||
22 | zpool import pool1 | ||
23 | |||
24 | ... | ||
25 | zpool export pool1 | ||
26 | ``` | ||
27 | |||
28 | ### Setup Samba | ||
29 | ```bash | ||
30 | ansible-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 | ||