Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
infra
ansible-shared
samba
Commits
2b9e7f2d
Commit
2b9e7f2d
authored
Mar 06, 2018
by
Hinrikus Wolf
Browse files
ad-server: refactor role according todos
parent
a533c7fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
ad-server/tasks/main.yml
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment