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:
- block: - block:
- name: "add principal to keytab" - name: "add principal to keytab"
command: "kadmin.local ktadd -k /tmp/{{ inventory_hostname }}.kt \ command:
{{ item }}" argv:
- kadmin.local
- ktadd
- -k
- "/tmp/{{ inventory_hostname }}.kt"
- "{{ item }}"
with_items: "{{ principals }}" with_items: "{{ principals }}"
- name: get keytab - name: get keytab
command: "base64 /tmp/{{ inventory_hostname }}.kt" command: "base64 /tmp/{{ inventory_hostname }}.kt"