From ac0956ed6f2cb3ba27697c985f345a38d32a03b3 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Sat, 9 Nov 2024 10:53:42 +0100 Subject: [PATCH] [PR #9104/195ae4af backport][stable-10] ipa_getkeytab: Fix example task (#9112) ipa_getkeytab: Fix example task (#9104) Fix ipa_getkeytab example task (cherry picked from commit 195ae4afdee6f58b1afe8aca382ccba998e64c0f) Co-authored-by: alexander <79072457+abakanovskii@users.noreply.github.com> --- plugins/modules/ipa_getkeytab.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/plugins/modules/ipa_getkeytab.py b/plugins/modules/ipa_getkeytab.py index 3d4f81d5b1..643e18cf62 100644 --- a/plugins/modules/ipa_getkeytab.py +++ b/plugins/modules/ipa_getkeytab.py @@ -98,11 +98,9 @@ extends_documentation_fragment: ''' EXAMPLES = r''' -- name: Get kerberos ticket - ansible.builtin.shell: kinit admin - args: - stdin: "{{ aldpro_admin_password }}" - changed_when: true +- name: Get Kerberos ticket using default principal + community.general.krb_ticket: + password: "{{ aldpro_admin_password }}" - name: Create keytab community.general.ipa_getkeytab: