Refs #8142: Samba Server Deploy - Refactor variables to set hosts file #51

Merged
xavi merged 16 commits from 8142-samba_server_final into main 2025-01-30 07:11:04 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 37d035491b - Show all commits

View File

@ -55,7 +55,7 @@
path: /etc/hosts
marker: "# {mark} ANSIBLE-MANAGED SAMBA DC ENTRY"
block: |
{{ ip_serverad1 }} {{ name_ip_serverad1}}.{{ domain }}.{{ resolv_domain }} {{ realm }}
{{ ip_serverad | default(ansible_default_ipv4.address) }} {{ ansible_facts['hostname'] }}.{{ domain }}.{{ resolv_domain }} {{ realm }}
- name: Force remove smb.conf file
file: