mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-07 13:53:23 +00:00
roles/ipaclient/tasks/install.yml: Tew additional checks for password, keytab and otp
This commit is contained in:
@@ -42,6 +42,12 @@
|
||||
|
||||
when: ipaclient_password is not defined and ipaclient_keytab is not defined
|
||||
|
||||
- fail: msg="At least one of password, keytab or otp must be specified"
|
||||
when: ipaclient_password is undefined and ipaclient_keytab is undefined and ipaclient_otp is undefined
|
||||
|
||||
- fail: msg="Password is not defined"
|
||||
when: ipaclient_password is undefined
|
||||
|
||||
- name: Install - Join IPA
|
||||
ipajoin:
|
||||
servers: "{{ ipadiscovery.servers }}"
|
||||
|
||||
Reference in New Issue
Block a user