Work around missing domain name.

This commit is contained in:
Andreas B. Mundt 2021-04-10 10:11:46 +02:00 committed by Andreas B. Mundt
parent 16ac6d7169
commit 4fab918db9
2 changed files with 3 additions and 6 deletions

View file

@ -1,5 +1,5 @@
basedn: "{{ 'dc=' + ( ansible_domain | replace('^.','') | replace('.$','') | replace('.',',dc=')) }}" basedn: "{{ 'dc=' + ( ansible_dns['domain'] | default('intern') | replace('^.','') | replace('.$','') | replace('.',',dc=')) }}"
ldap_server: sambox ldap_server: ldap
home_server: sambox home_server: homes
min_id_sssd: 5000 min_id_sssd: 5000
max_id_sssd: 20000 max_id_sssd: 20000

View file

@ -1,7 +1,4 @@
--- ---
- fail: msg="The machine's domain must not be empty."
when: ansible_domain | length == 0
- name: install needed packages - name: install needed packages
apt: apt:
name: name: