-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! Enable deployment roles testing using Github workflows
- Loading branch information
Showing
5 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
lab_name: ipareplica_ca | ||
ipa_deployments: | ||
- name: ipareplica_ca | ||
domain: ipa.test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
lab_name: ipaserver_1_client | ||
ipa_deployments: | ||
- name: ipaserver_1_client | ||
domain: ipa.test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
lab_name: ipaserver_test_base | ||
ipa_deployments: | ||
- name: ipaserver_test_base | ||
domain: ipa.test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
- name: Test if admin user can get TGT on the host | ||
hosts: all | ||
become: false | ||
gather_facts: false | ||
|
||
tasks: | ||
- name: Run kinit on host | ||
ansible.builtin.shell: "kinit admin <<< {{ ipaadmin_password }}" | ||
register: kinit | ||
changed_when: not kinit.failed | ||
|
||
- name: Cleanup TGT ticket | ||
ansible.builtin.shell: "kdestroy -A" | ||
when: not kinit.failed | ||
register: cleanup | ||
changed_when: not cleanup.failed |