Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
infra
ansible-shared
samba
Commits
08105e1a
Commit
08105e1a
authored
Nov 04, 2017
by
Hinrikus Wolf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nfs-server: add condition for checking if krb is needed
parent
71dd8db7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
nfs-server/tasks/main.yml
nfs-server/tasks/main.yml
+4
-1
No files found.
nfs-server/tasks/main.yml
View file @
08105e1a
...
...
@@ -45,7 +45,7 @@
-
config
-
name
:
ensure nfs-server is enabled and running
service
:
name=nfs-server state=
running
enabled=yes
service
:
name=nfs-server state=
started
enabled=yes
tags
:
-
nfs-server
-
service
...
...
@@ -55,6 +55,7 @@
tags
:
-
nfs-server
-
service-principal
when
:
nfs_krb is defined
-
name
:
check that we have a valid service principal
shell
:
klist -k /etc/krb5.keytab | grep "nfs/{{ ansible_fqdn }}"
...
...
@@ -63,6 +64,7 @@
tags
:
-
nfs-server
-
service-principal
when
:
nfs_krb is defined
-
block
:
-
name
:
create service principal
...
...
@@ -124,5 +126,6 @@
-
nfs-server
-
service-principal
when
:
principal.rc ==
1
when
:
nfs_krb is defined
-
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