2025-09-30 17:40:18 +02:00
|
|
|
---
|
2025-10-19 22:25:19 +02:00
|
|
|
- name: Provision the Samba AD DC
|
|
|
|
|
ansible.builtin.command: >
|
2025-09-30 17:40:18 +02:00
|
|
|
samba-tool domain provision
|
|
|
|
|
--use-rfc2307
|
2025-10-19 22:25:19 +02:00
|
|
|
--realm={{ addc_auth_domain }}
|
|
|
|
|
--domain={{ addc_netbios_domain }}
|
|
|
|
|
--server-role={{ addc_server_role }}
|
|
|
|
|
--dns-backend={{ addc_dns_backend }}
|
|
|
|
|
--adminpass={{ addc_admin_password }}
|
|
|
|
|
--option="interfaces=lo eth0"
|
|
|
|
|
--option="bind interfaces only=yes"
|
2025-09-30 17:40:18 +02:00
|
|
|
register: samba_provision_output
|
2025-10-19 22:25:19 +02:00
|
|
|
changed_when: samba_provision_output.rc == 0
|
|
|
|
|
no_log: true # You may toggle this if password should be hidden
|