Skip to content
Snippets Groups Projects
Unverified Commit 8c88413a authored by Thomas Woerner's avatar Thomas Woerner Committed by GitHub
Browse files

Merge pull request #717 from rjeffman/ci_fix_kdc_unavailable

upstream CI: Wait for KDC to be available.
parents 40e00a62 30c4748f
Branches
Tags
No related merge requests found
...@@ -25,3 +25,24 @@ ...@@ -25,3 +25,24 @@
ansible.builtin.service: ansible.builtin.service:
name: ipa name: ipa
state: started state: started
- name: Wait for krb5dkc to be running
ansible.builtin.service_facts:
no_log: True
register: result
until: "'krb5kdc.service' in result.ansible_facts.services and \
result.ansible_facts.services['krb5kdc.service'].state == 'running'"
retries: 30
delay: 5
- name: Check if TGT is available for admin.
ansible.builtin.shell:
cmd: echo SomeADMINpassword | kinit -c ansible_freeipa_cache admin
register: result
until: not result.failed
retries: 30
delay: 5
- name: Cleanup TGT.
ansible.builtin.shell:
cmd: kdestroy -c ansible_freeipa_cache -A
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment