-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsamba.yml
85 lines (74 loc) · 2.73 KB
/
samba.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
---
- name: Apply Proxmox config
hosts: pve
vars_files:
- vars.yml
- private-vars.yml
roles:
- role: tychobrouwer.lxc_mount
lxc_mount_is_lxc: false
lxc_mount_mounts:
- { src: /media/file-share, dest: /share/file-share }
- { src: /rpool-main/media-share, dest: /share/media-share }
- { src: /rpool-main/media-share/Movies, dest: /share/media-share/Movies }
- { src: /rpool-main/media-share/Series, dest: /share/media-share/Series }
- { src: /rpool-main/media-share/Books, dest: /share/media-share/Books }
- { src: /rpool-main/media-share/Torrents, dest: /share/media-share/Torrents }
- { src: /rpool-main/media-share/Transcodes, dest: /share/media-share/Transcodes }
lxc_mount_lxc_id: 103
- name: Install Samba
hosts: samba
vars_files:
- vars.yml
- private-vars.yml
roles:
- role: tychobrouwer.ssh
- role: tychobrouwer.samba
samba_username: sambauser
samba_shares:
- name: file_share
comment: private file share
path: /share/file-share
writable: "yes"
browsable: "yes"
inherit_permissions: "yes"
force_user: sambauser
force_group: sambauser
- name: media_share
comment: private media share
path: /share/media-share
writable: "yes"
browsable: "yes"
inherit_permissions: "yes"
force_user: sambauser
force_group: sambauser
- role: tychobrouwer.lxc_mount
lxc_mount_is_lxc: true
lxc_mount_mounts:
- { src: /media/file-share, dest: /share/file-share }
- { src: /rpool-main/media-share, dest: /share/media-share }
- { src: /rpool-main/media-share/Movies, dest: /share/media-share/Movies }
- { src: /rpool-main/media-share/Series, dest: /share/media-share/Series }
- { src: /rpool-main/media-share/Books, dest: /share/media-share/Books }
- { src: /rpool-main/media-share/Torrents, dest: /share/media-share/Torrents }
- { src: /rpool-main/media-share/Transcodes, dest: /share/media-share/Transcodes }
lxc_mount_lxc_id: 103
lxc_mount_users: [sambauser]
tasks:
- name: Install pip
ansible.builtin.package:
name: python3-pip
state: present
- name: Set pip configuration
ansible.builtin.command: pip3 config set global.break-system-packages True
changed_when: false
- name: Install icloudpd python package
ansible.builtin.pip:
name: icloudpd
state: present
- name: Set journald log size
ansible.builtin.lineinfile:
path: /etc/systemd/journald.conf
line: SystemMaxUse=512M
regexp: ^SystemMaxUse=
insertafter: "[Journal]"