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 9 additions and 9 deletions
Showing only changes of commit 40ea739925 - Show all commits

View File

@ -63,15 +63,7 @@
path: /etc/samba/smb.conf
state: absent
force: yes
- name: Disable Samba client services and mask them
systemd:
name: "{{ item }}"
state: stopped
enabled: no
masked: yes
loop: "{{ samba_client_services }}"
- name: Join domain
command:
cmd: samba-tool domain provision --realm="{{ realm }}" --domain="{{ domain }}" --dns-backend=SAMBA_INTERNAL --server-role=dc --use-rfc2307
@ -97,6 +89,14 @@
state: started
enabled: yes
when: domain_join.changed
- name: Disable Samba client services and mask them
systemd:
name: "{{ item }}"
state: stopped
enabled: no
masked: yes
loop: "{{ samba_client_services }}"
- name: Perform a DNS query to get the IP of google.es
command: "dig @{{ main_dns_server }} google.es +short"