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