mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-30 11:24:50 +00:00
roles/ipaclient/tasks/install.yml: Checks for principal, keytab and password
This commit is contained in:
@@ -44,11 +44,13 @@
|
|||||||
|
|
||||||
when: ipaclient_use_otp | bool
|
when: ipaclient_use_otp | bool
|
||||||
|
|
||||||
- fail: msg="At least one of password, keytab or otp must be specified"
|
- name: Install - Check if principal and keytab are set
|
||||||
when: ipaclient_password is undefined and ipaclient_keytab is undefined and ipaclient_otp is undefined
|
fail: msg="Principal and keytab cannot be used together"
|
||||||
|
when: ipaclient_principal is defined and ipaclient_keytab is defined
|
||||||
|
|
||||||
- fail: msg="Password is not defined"
|
- name: Install - Check if one of password and keytab are set
|
||||||
when: ipaclient_password is undefined
|
fail: msg="At least one of password or keytab must be specified"
|
||||||
|
when: ipaclient_password is undefined and ipaclient_keytab is undefined
|
||||||
|
|
||||||
- name: Install - Join IPA
|
- name: Install - Join IPA
|
||||||
ipajoin:
|
ipajoin:
|
||||||
|
|||||||
Reference in New Issue
Block a user