Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible-warpzone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
infrastruktur
ansible-warpzone
Commits
eb5984ef
Commit
eb5984ef
authored
3 years ago
by
void
Browse files
Options
Downloads
Patches
Plain Diff
local samba server
parent
4416a2c1
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
host_vars/warpsrvint
+6
-0
6 additions, 0 deletions
host_vars/warpsrvint
warpsrvint/samba/tasks/main.yml
+40
-0
40 additions, 0 deletions
warpsrvint/samba/tasks/main.yml
warpsrvint/samba/templates/smb.conf
+31
-0
31 additions, 0 deletions
warpsrvint/samba/templates/smb.conf
with
77 additions
and
0 deletions
host_vars/warpsrvint
+
6
−
0
View file @
eb5984ef
...
@@ -66,6 +66,12 @@ alert:
...
@@ -66,6 +66,12 @@ alert:
- { mountpoint: "/", warn: "5 GB", crit: "1 GB" }
- { mountpoint: "/", warn: "5 GB", crit: "1 GB" }
# SAMBA Freigaben
samba_shares_public:
- { name: Projekte, path: /shares/projekte }
- { name: Temp, path: /shares/temp }
# Definition von Borgbackup Repositories
# Definition von Borgbackup Repositories
borgbackup_repos:
borgbackup_repos:
...
...
This diff is collapsed.
Click to expand it.
warpsrvint/samba/tasks/main.yml
0 → 100644
+
40
−
0
View file @
eb5984ef
---
-
name
:
Install Packages for {{ servicename }}
apt
:
state
:
present
name
:
-
samba
-
logrotate
-
name
:
Konfig-Dateien erstellen
template
:
src
:
"
{{
item
}}"
dest
:
"
/etc/samba/{{
item
}}"
with_items
:
-
smb.conf
register
:
config
-
name
:
Enable and start smbd service for {{ servicename }}
systemd
:
name
:
smbd
state
:
started
enabled
:
yes
-
name
:
Restart smbd service for {{ servicename }}
systemd
:
name
:
smbd
state
:
restarted
when
:
config.changed
-
name
:
Enable and start nmbd service for {{ servicename }}
systemd
:
name
:
nmbd
state
:
started
enabled
:
yes
-
name
:
Restart nmbd service for {{ servicename }}
systemd
:
name
:
nmbd
state
:
restarted
when
:
config.changed
This diff is collapsed.
Click to expand it.
warpsrvint/samba/templates/smb.conf
0 → 100644
+
31
−
0
View file @
eb5984ef
## Global settings
[
global
]
workgroup
=
warpzone
netbios
name
= {{
inventory_hostname
}}
guest
account
=
nobody
log
file
= /
usr
/
local
/
samba
/
var
/
log
.%
m
max
log
size
=
50
security
=
user
map
to
guest
=
bad
user
encrypt
passwords
=
yes
## Public Shares
{%
for
share
in
samba_shares_public
%}
[{{
share
.
name
}}]
path
= {{
share
.
path
}}
read
only
=
no
writable
=
yes
browseable
=
yes
only
guest
=
yes
guest
ok
=
yes
public
=
yes
create
mask
=
777
{%
endfor
%}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment