Updated package lists to ensure compatibility with different Linux distributions. This change will improve the reliability of the Ansible playbook when using these packages.
55 lines
1.5 KiB
YAML
55 lines
1.5 KiB
YAML
# AD Provisioning details
|
|
# Hostname = DC1
|
|
addc_hostname: 'DC1'
|
|
# DC local IP Address = 10.99.0.1
|
|
addc_ansible_host: '10.99.0.1'
|
|
# NetBIOS domain name (Workgroup).
|
|
addc_netbios_domain: 'SAMDOM'
|
|
# Top level Domain = EXAMPLE.COM
|
|
addc_tld: 'EXAMPLE.COM'
|
|
# Authentication Domain = SAMDOM.EXAMPLE.COM
|
|
addc_auth_domain: '{{ addc_netbios_domain | upper }}.{{ addc_tld | upper }}'
|
|
|
|
addc_admin_password: 'Passw0rd'
|
|
addc_dns_backend: 'SAMBA_INTERNAL'
|
|
addc_server_role: 'dc'
|
|
|
|
addc_ip_network_prefix: "{{ addc_ansible_host.split('.')[:3] | join('.') }}"
|
|
addc_ip_last_octet: "{{ addc_ansible_host.split('.')[-1] }}"
|
|
addc_reverse_zone_name: "{{ addc_ip_network_prefix.split('.') | reverse | join('.') }}.in-addr.arpa"
|
|
|
|
samba_domain_info:
|
|
realm: '{{ addc_auth_domain | upper }}'
|
|
domain: '{{ addc_netbios_domain | upper }}'
|
|
server_role: "{{ addc_server_role | default('dc') }}"
|
|
dns_backend: "{{ addc_dns_backend | default('SAMBA_INTERNAL') }}"
|
|
adminpass: '{{ addc_admin_password }}'
|
|
interfaces: "{{ samba_iface_list | join(' ') }}"
|
|
bind_interfaces_only: 'yes'
|
|
|
|
samba_iface_list:
|
|
- lo
|
|
- eth0
|
|
|
|
samba_packages:
|
|
- acl
|
|
- attr
|
|
- samba
|
|
- winbind
|
|
- libpam-winbind
|
|
- libnss-winbind
|
|
- krb5-config
|
|
- krb5-user
|
|
- bind9-dnsutils
|
|
# - dnsutils
|
|
- python3-setproctitle
|
|
# - smbclient
|
|
- samba-ad-dc
|
|
- smbclient # Debian/Ubuntu
|
|
- samba-client # RHEL family (it will skip if not available)
|
|
|
|
# template for /etc/resolv.conf
|
|
location_internal_dns: 192.168.1.1
|
|
location_external_dns: 8.8.8.8
|
|
|
|
backup_path: '/path/to/your/backup/directory' |