refs #8142: Disable Samba client services and mask them goes out block slice
This commit is contained in:
parent
375cb1c1cc
commit
40ea739925
|
@ -64,14 +64,6 @@
|
||||||
state: absent
|
state: absent
|
||||||
force: yes
|
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
|
- name: Join domain
|
||||||
command:
|
command:
|
||||||
cmd: samba-tool domain provision --realm="{{ realm }}" --domain="{{ domain }}" --dns-backend=SAMBA_INTERNAL --server-role=dc --use-rfc2307
|
cmd: samba-tool domain provision --realm="{{ realm }}" --domain="{{ domain }}" --dns-backend=SAMBA_INTERNAL --server-role=dc --use-rfc2307
|
||||||
|
@ -98,6 +90,14 @@
|
||||||
enabled: yes
|
enabled: yes
|
||||||
when: domain_join.changed
|
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
|
- name: Perform a DNS query to get the IP of google.es
|
||||||
command: "dig @{{ main_dns_server }} google.es +short"
|
command: "dig @{{ main_dns_server }} google.es +short"
|
||||||
register: dns_exists
|
register: dns_exists
|
||||||
|
|
Loading…
Reference in New Issue