samba: check AD membership with net
Seems more reliable than adcli. Not sure how reliable any of this actually is.
This commit is contained in:
parent
c7a3513fa1
commit
19431a827b
|
@ -28,7 +28,7 @@
|
||||||
line: session optional pam_mkhomedir.so
|
line: session optional pam_mkhomedir.so
|
||||||
|
|
||||||
- name: Check domain membership
|
- name: Check domain membership
|
||||||
command: 'adcli testjoin -D {{ domain }}'
|
command: 'net ads testjoin'
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: false
|
failed_when: false
|
||||||
register: ad_join
|
register: ad_join
|
||||||
|
|
Loading…
Reference in a new issue