|
|
|
@ -9,6 +9,11 @@ |
|
|
|
|
when: samba_role == 'dc' or samba_role == 'rodc' |
|
|
|
|
tags: samba |
|
|
|
|
|
|
|
|
|
- name: Update ldb |
|
|
|
|
yum: name=ldb-tools state=latest |
|
|
|
|
when: samba_role == 'dc' or samba_role == 'rodc' |
|
|
|
|
tags: samba |
|
|
|
|
|
|
|
|
|
# sssd-libwbclient breaks DC so only install on members |
|
|
|
|
- name: Install members components |
|
|
|
|
yum: name=sssd-libwbclient |
|
|
|
@ -54,6 +59,8 @@ |
|
|
|
|
- samba_role == 'dc' |
|
|
|
|
- not samba_dc_sysvol.stat.exists |
|
|
|
|
register: samba_dc_join |
|
|
|
|
environment: |
|
|
|
|
LDB_MODULES_PATH: /usr/lib64/samba/ldb |
|
|
|
|
ignore_errors: True |
|
|
|
|
tags: samba |
|
|
|
|
|
|
|
|
@ -79,6 +86,8 @@ |
|
|
|
|
- not samba_dc_sysvol.stat.exists |
|
|
|
|
- samba_i_am_primary_dc == True |
|
|
|
|
- samba_dc_join.rc != 0 |
|
|
|
|
environment: |
|
|
|
|
LDB_MODULES_PATH: /usr/lib64/samba/ldb |
|
|
|
|
tags: samba |
|
|
|
|
|
|
|
|
|
- name: Join the domain (as RODC) |
|
|
|
@ -92,5 +101,7 @@ |
|
|
|
|
when: |
|
|
|
|
- samba_role == 'rodc' |
|
|
|
|
- not samba_dc_sysvol.stat.exists |
|
|
|
|
environment: |
|
|
|
|
LDB_MODULES_PATH: /usr/lib64/samba/ldb |
|
|
|
|
tags: samba |
|
|
|
|
|
|
|
|
|