roles/ipaclient/tasks/install.yml: Add keytab or password required test

The failed test result in ipahost will not be seen because of the no_log
setting to hide the generated password.
This commit is contained in:
Thomas Woerner
2017-10-13 16:38:45 +02:00
parent 8af5a26873
commit e3ae3476a5

View File

@@ -55,6 +55,9 @@
# If a keytab is specified in the hostent, then the hostent will be disabled
# if ipaclient_use_otp is set.
- block:
- fail: msg="Keytab or password is required for otp"
when: ipaadmin_keytab is undefined and ipaadmin_password is undefined
- name: Install - Get a One-Time Password for client enrollment
no_log: yes
ipahost: