kerberos/keytab: No need to check if spn exists

Running ktadd will fail anyway if no principal is found from server.
This commit is contained in:
Timo Makinen 2021-03-11 05:12:47 +00:00
parent fc5b9a6246
commit 25417ed9eb

View file

@ -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 }}"