Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Ansible FreeIPA
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Ansible FreeIPA
Commits
097a3426
Unverified
Commit
097a3426
authored
Jun 29, 2020
by
Sergio Oliveira
Committed by
GitHub
Jun 29, 2020
Browse files
Options
Downloads
Plain Diff
Merge pull request #311 from rjeffman/service_fix_krb5_ticket
Fixes ipaservice disable tests.
parents
464eae16
957b5910
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
tests/service/test_service_disable.yml
+15
-0
15 additions, 0 deletions
tests/service/test_service_disable.yml
with
15 additions
and
0 deletions
tests/service/test_service_disable.yml
+
15
−
0
View file @
097a3426
# Due to not having some Ansible modules for IPA, some tasks are executed
# in this playbook using the `shell` module, as a Kerberos tikcket is needed
# for these tasks.
# The Kerberos cache is cleaned in the end, so you might need to `kinit` on
# the testing target after running this playbook.
---
---
-
name
:
Playbook to manage IPA service.
-
name
:
Playbook to manage IPA service.
hosts
:
ipaserver
hosts
:
ipaserver
become
:
yes
become
:
yes
gather_facts
:
yes
gather_facts
:
yes
environment
:
KRB5CCNAME
:
test_service_disable_ccache
tasks
:
tasks
:
-
name
:
Get Kerberos ticket for `admin`.
shell
:
echo SomeADMINpassword | kinit -c ${KRB5CCNAME} admin
-
name
:
Ensure service is absent
-
name
:
Ensure service is absent
ipaservice
:
ipaservice
:
ipaadmin_password
:
SomeADMINpassword
ipaadmin_password
:
SomeADMINpassword
name
:
"
mysvc1/{{
ansible_fqdn
}}"
name
:
"
mysvc1/{{
ansible_fqdn
}}"
state
:
absent
-
name
:
Ensure service is present
-
name
:
Ensure service is present
ipaservice
:
ipaservice
:
...
@@ -66,3 +78,6 @@
...
@@ -66,3 +78,6 @@
ipaservice
:
ipaservice
:
ipaadmin_password
:
SomeADMINpassword
ipaadmin_password
:
SomeADMINpassword
name
:
"
mysvc1/{{
ansible_fqdn
}}"
name
:
"
mysvc1/{{
ansible_fqdn
}}"
-
name
:
Destroy Kerberos tickets.
shell
:
kdestroy -A -q -c ${KRB5CCNAME}
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