refs #8142: Disable Samba client services and mask them goes out block slice

This commit is contained in:
Xavi Lleó 2025-01-16 11:54:37 +01:00
parent 375cb1c1cc
commit 40ea739925
1 changed files with 9 additions and 9 deletions

View File

@ -64,14 +64,6 @@
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
@ -98,6 +90,14 @@
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"
register: dns_exists