lots of stuff
This commit is contained in:
parent
9f77e30161
commit
6a209092e1
12 changed files with 375 additions and 39 deletions
29
roles/samba/tasks/main.yml
Normal file
29
roles/samba/tasks/main.yml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
- name: Install Samba
|
||||
apt:
|
||||
name: samba
|
||||
state: present
|
||||
|
||||
- name: Ensure smbd is running & enabled.
|
||||
service:
|
||||
name: smbd
|
||||
state: started
|
||||
enabled: true
|
||||
|
||||
- name: Create family account for share access
|
||||
user:
|
||||
name: lambroek
|
||||
state: present
|
||||
create_home: false
|
||||
groups:
|
||||
- data
|
||||
password: "{{ lambroek_password }}"
|
||||
shell: /sbin/nologin
|
||||
|
||||
- name: Copy over smb config file
|
||||
copy:
|
||||
src: smb.conf
|
||||
dest: /etc/samba/smb.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: '644'
|
||||
notify: restart-smbd
|
||||
Loading…
Add table
Add a link
Reference in a new issue