Commit Graph
8 Commits
Author SHA1 Message Date
Florence Blanc-Renaud 5b57c8b792 ipahost module: fix the module for IPA 4.4 server
The module had unused imports preventing execution with an IPA 4.4 server.
The commit removes unneeded imports, and adds documentation details.
2017-10-17 17:06:14 +02:00
Florence Blanc-Renaud a0b8bd39e0 Simplify ipaclient uninstall
Currently ipaclient role is using the module ipaclient only for uninstallation,
and this module contains a lot of unused code.
It is simpler to directly call the command-line
   ipa-client-install --uninstall -U
and remove the ipaclient module.
2017-10-12 09:47:03 +02:00
Florence Blanc-Renaud c0cc3d4ece Remove unused inventory variables 2017-10-12 09:21:52 +02:00
Florence Blanc-Renaud 92d73ae2b8 Fix otp + force-join usecase
When the client already has a working keytab, use_otp is disabled. This creates
an issue when ipaclient_force_join is set, because the join module is called
with ipaadmin_principal and ipaadmin_password, but these variables may be
undefined if ipaadmin_keytab is used instead.
We should not disable OTP when force-join is specified.
2017-10-11 16:48:26 +02:00
Florence Blanc-Renaud 4bb1e84530 Fix modules documentation and remove unused variables 2017-10-11 16:14:36 +02:00
Florence Blanc-Renaud c824cf6745 Fix logic trying to obtain a keytab
When ipahost is run to generate an OTP and the host is already existing,
the OTP is properly generated but ipa-join will fail if the host is
already enrolled (ie when it has a keytab).
Add a step calling ipa host-disable to erase OTP and keytab before
requesting an OTP.
2017-09-15 13:49:09 +02:00
Florence Blanc-Renaud 38d7223376 Modify ipahost module: the authentication is done locally on the controller
node and the credential cache is copied to the managed node

ipahost module is also using facts gathered from the server to find the
domain and realm.
2017-08-10 16:54:44 +02:00
Florence Blanc-Renaud 09f45e4acd Ansible for IPA 2017-07-03 09:55:23 +02:00