keytab: Use argv for kadmin.local command options
This commit is contained in:
parent
7373510902
commit
fbe8af9a3b
1 changed files with 7 additions and 2 deletions
|
@ -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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue