Initial Lab Setup
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
---
|
||||
- name: Install and Configure Samba
|
||||
hosts: samba_servers
|
||||
become: yes
|
||||
tasks:
|
||||
- name: Install Samba
|
||||
package:
|
||||
name: samba
|
||||
state: present
|
||||
- name: Ensure NFS utilities are installed.
|
||||
apt:
|
||||
name:
|
||||
- nfs-common
|
||||
- nfs-kernel-server
|
||||
state: present
|
||||
- name: Configure smb.conf
|
||||
template:
|
||||
src: smb.conf.template
|
||||
dest: /etc/samba/smb.conf
|
||||
notify: restart samba
|
||||
|
||||
# handlers:
|
||||
# - name: restart samba
|
||||
# service:
|
||||
# name: smbd
|
||||
# state: restarted
|
||||
# state: present
|
||||
Reference in New Issue
Block a user