This is a backport of PR #8938 as merged into main (1d86d49688ea0f0adedc2eed30e70dbd21e4f80d).
SUMMARY
ipa_getkeytab as a fancy wrapper around ipa-getkeytab command
ISSUE TYPE
New Module/Plugin Pull Request
COMPONENT NAME
ipa_getkeytab
ADDITIONAL INFORMATION
Pretty much a simple wrapper around a ipa-getkeytab using cmd_runner
I tested this module by my hands and it seems to work as intended
I don't know how to write unit tests because for integration test I would need FreeIPA server and client installed so i wrote something up using test_npm as a source
# Before this module you would have to do something like this
- name: Create keytab
ansible.builtin.shell: ipa-getkeytab -s <ipa_server> -p <some_principal> -k <some_path>
# Now you can do this like this
- name: Create keytab
community.general.ipa_getkeytab:
path: <some_path>
principal: <some_principal>
ipa_server: <ipa_server>
This is a backport of PR #8938 as merged into main (1d86d49688ea0f0adedc2eed30e70dbd21e4f80d).
SUMMARY
ipa_getkeytab
as a fancy wrapper aroundipa-getkeytab
commandISSUE TYPE
COMPONENT NAME
ipa_getkeytab
ADDITIONAL INFORMATION
Pretty much a simple wrapper around a
ipa-getkeytab
usingcmd_runner
I tested this module by my hands and it seems to work as intended I don't know how to write unit tests because for integration test I would need FreeIPA server and client installed so i wrote something up usingtest_npm
as a source