keytab: Use argv for kadmin.local command options

This commit is contained in:
Timo Makinen 2021-09-18 18:07:55 +00:00
parent 7373510902
commit fbe8af9a3b

View file

@ -8,8 +8,13 @@
- block:
- block:
- name: "add principal to keytab"
command: "kadmin.local ktadd -k /tmp/{{ inventory_hostname }}.kt \
{{ item }}"
command:
argv:
- kadmin.local
- ktadd
- -k
- "/tmp/{{ inventory_hostname }}.kt"
- "{{ item }}"
with_items: "{{ principals }}"
- name: get keytab
command: "base64 /tmp/{{ inventory_hostname }}.kt"