-
Notifications
You must be signed in to change notification settings - Fork 3
/
marvin.yml
59 lines (54 loc) · 1.26 KB
/
marvin.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
---
- hosts: marvin
roles:
- bitraf-base
- lusers
- superusers
- minio-bin
- minio-server
- role: nginx
nginx__template:
- sites-enabled/default
ipv6: "{{ host_database.marvin.interfaces.eth0.ipv6.address }}"
handlers:
- name: systemctl restart smbd
become: yes
systemd:
name: smbd
state: restarted
tasks:
- name: lxc-guest
import_role: name=lxc-guest
tags: lxc-guest
become: true
- name: packages
import_role: name=packages
tags: packages
become: true
- tags: samba
become: yes
block:
- name: Install packages
apt:
name: "{{ item }}"
state: present
with_items:
- samba
- name: adduser dropbox
user:
name: dropbox
state: present
home: /dropbox
shell: /bin/false
system: yes
- name: chown dropbox:dropbox /dropbox
file:
path: /dropbox
owner: dropbox
group: dropbox
mode: 0700
- name: smb.conf
notify: systemctl restart smbd
copy:
dest: /etc/samba/smb.conf
src: marvin/etc/samba/smb.conf