refs #8142: Remove recollecting package facts and add DNS records within the block.
This commit is contained in:
parent
56ed72d0a1
commit
0283612eb4
|
@ -25,9 +25,6 @@
|
||||||
# apt:
|
# apt:
|
||||||
# update_cache: yes
|
# update_cache: yes
|
||||||
|
|
||||||
- name: Gather installed packages
|
|
||||||
package_facts:
|
|
||||||
|
|
||||||
- name: Install adSamba packages
|
- name: Install adSamba packages
|
||||||
package:
|
package:
|
||||||
name: "{{ dcsamba_base_packages }}"
|
name: "{{ dcsamba_base_packages }}"
|
||||||
|
@ -90,14 +87,6 @@
|
||||||
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: Extracting variables
|
- name: Extracting variables
|
||||||
no_log: true
|
no_log: true
|
||||||
set_fact:
|
set_fact:
|
||||||
|
@ -129,3 +118,10 @@
|
||||||
value: '{{ name_ad }}.{{ realm }}.'
|
value: '{{ name_ad }}.{{ realm }}.'
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
- name: Disable Samba client services and mask them
|
||||||
|
systemd:
|
||||||
|
name: "{{ item }}"
|
||||||
|
state: stopped
|
||||||
|
enabled: no
|
||||||
|
masked: yes
|
||||||
|
loop: "{{ samba_client_services }}"
|
||||||
|
|
Loading…
Reference in New Issue