Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
samba
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
infra
ansible-shared
samba
Commits
2b9e7f2d
Commit
2b9e7f2d
authored
7 years ago
by
Hinrikus Wolf
Browse files
Options
Downloads
Patches
Plain Diff
ad-server: refactor role according todos
parent
a533c7fb
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ad-server/tasks/main.yml
+5
-7
5 additions, 7 deletions
ad-server/tasks/main.yml
with
5 additions
and
7 deletions
ad-server/tasks/main.yml
+
5
−
7
View file @
2b9e7f2d
...
...
@@ -38,9 +38,7 @@
-
domain-provision
-
password
# provision smb-domain. passwords will be selected at random and safed to /root/smb-provision.log)
# TODO: Evaluate if internal DNS-backend is powerful enough for usecase otherwise bind9 is needed
-
name
:
ensure domain is provisioned
shell
:
samba-tool domain provision --use-rfc2307 --domain={{ smb_domain }} --server-role=dc --host-name={{ ansible_hostname }} --realm={{ REALM }} --dns-backend=NONE --adminpass={{ adminpass.password }} 2> /root/smb-provision.log
...
...
@@ -69,10 +67,11 @@
-
ad-server
-
service
#- name: ensure samba-ad-dc unit is running, enabled and not masked
# systemd: name=samba-ad-dc masked=no state=running enabled=yes
-
debug
:
msg
:
"
Ensure
samba-ad-dc
unit
is
not
masked.
This
functionality
will
come
in
ansible
2.2,
you
should
refactor
this
role"
-
name
:
ensure samba-ad-dc unit is running, enabled and not masked
systemd
:
name=samba-ad-dc masked=no state=running enabled=yes
tags
:
-
ad-server
-
service
-
name
:
ensure samba-ad-dc is running and enabled
service
:
name=samba-ad-dc state=running enabled=yes
...
...
@@ -80,5 +79,4 @@
-
ad-server
-
service
-
meta
:
flush_handlers
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