ansible-roles/roles/samba/tasks/member_join.yml
2021-12-01 19:13:34 +01:00

11 lines
373 B
YAML

---
# We should already be in the domain with adcli, but this is an
# easy way to add cifs/hostname principal to our keytab, and is needed to
# populate the secrets in secrets.tdb, which adcli doesn't do
- name: Join the domain with net ads
command: net ads join {{ samba_realm | upper }} -U 'Administrator%{{ samba_dc_admin_pass }}'
no_log: True
tags: samba