From 25417ed9eb9d464ed77d8b3bd280b4232319a53b Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Thu, 11 Mar 2021 05:12:47 +0000 Subject: [PATCH] kerberos/keytab: No need to check if spn exists Running ktadd will fail anyway if no principal is found from server. --- roles/kerberos/keytab/tasks/main.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/roles/kerberos/keytab/tasks/main.yml b/roles/kerberos/keytab/tasks/main.yml index 7daae01..6c54dfd 100644 --- a/roles/kerberos/keytab/tasks/main.yml +++ b/roles/kerberos/keytab/tasks/main.yml @@ -7,10 +7,6 @@ - block: - block: - - name: check if principal exists - command: "kadmin.local getprinc {{ item }}" - with_items: "{{ principals }}" - check_mode: false - name: "add principal to keytab" command: "kadmin.local ktadd -k /tmp/{{ inventory_hostname }}.kt \ {{ item }}"