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:
parent
fc5b9a6246
commit
25417ed9eb
1 changed files with 0 additions and 4 deletions
|
@ -7,10 +7,6 @@
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- block:
|
- block:
|
||||||
- name: check if principal exists
|
|
||||||
command: "kadmin.local getprinc {{ item }}"
|
|
||||||
with_items: "{{ principals }}"
|
|
||||||
check_mode: false
|
|
||||||
- name: "add principal to keytab"
|
- name: "add principal to keytab"
|
||||||
command: "kadmin.local ktadd -k /tmp/{{ inventory_hostname }}.kt \
|
command: "kadmin.local ktadd -k /tmp/{{ inventory_hostname }}.kt \
|
||||||
{{ item }}"
|
{{ item }}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue