refs #8142: Package installation moved to the beginning.ç
This commit is contained in:
parent
e9c6253812
commit
40c1e21e93
|
@ -18,6 +18,12 @@
|
||||||
- name: Gather installed packages
|
- name: Gather installed packages
|
||||||
package_facts:
|
package_facts:
|
||||||
|
|
||||||
|
- name: Install adSamba packages
|
||||||
|
package:
|
||||||
|
name: "{{ dcsamba_base_packages }}"
|
||||||
|
# default_release: bookworm-backports # If we want to go 4.21
|
||||||
|
state: latest
|
||||||
|
|
||||||
- name: Check if metadata.tdb exists and is not empty
|
- name: Check if metadata.tdb exists and is not empty
|
||||||
stat:
|
stat:
|
||||||
path: /var/lib/samba/private/sam.ldb.d/metadata.tdb
|
path: /var/lib/samba/private/sam.ldb.d/metadata.tdb
|
||||||
|
@ -44,11 +50,6 @@
|
||||||
|
|
||||||
- when: "not domain_exists"
|
- when: "not domain_exists"
|
||||||
block:
|
block:
|
||||||
- name: Install adSamba packages
|
|
||||||
package:
|
|
||||||
name: "{{ dcsamba_base_packages }}"
|
|
||||||
# default_release: bookworm-backports # If we want to go 4.21
|
|
||||||
state: latest
|
|
||||||
|
|
||||||
- name: Add adsamba host to hosts file
|
- name: Add adsamba host to hosts file
|
||||||
blockinfile:
|
blockinfile:
|
||||||
|
@ -109,9 +110,13 @@
|
||||||
block:
|
block:
|
||||||
|
|
||||||
- name: Extracting variables
|
- name: Extracting variables
|
||||||
no_log: true
|
#no_log: true
|
||||||
set_fact:
|
set_fact:
|
||||||
passwords: "{{ lookup(passbolt, 'rndc.key', folder_parent_id=passbolt_folder).password }}"
|
passwords: "{{ lookup(passbolt, key_name, folder_parent_id=passbolt_folder).password }}"
|
||||||
|
|
||||||
|
- name:
|
||||||
|
debug:
|
||||||
|
msg: "Las variables son {{ key_name }} -- {{ passwords }} -- {{ key_algorithm }} -- {{ main_dns_server }} -- {{ resolv_domain }} -- {{ name_ad }}.{{ realm }}. -- {{ ip_serverad }}"
|
||||||
|
|
||||||
- name: Add A record to DNS
|
- name: Add A record to DNS
|
||||||
nsupdate:
|
nsupdate:
|
||||||
|
@ -139,8 +144,3 @@
|
||||||
value: '{{ name_ad }}.{{ realm }}.'
|
value: '{{ name_ad }}.{{ realm }}.'
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
# Hay que crear un registro tipo A con el FQDN es decir el GLUE RECORD en tu DNS. Hecho.
|
|
||||||
# Luego hay que crear la delegación # update add activedirectory.verdnatura.es. 86400 NS dc1-ad.activedirectory.verdnatura.es. Hecho.
|
|
||||||
# Bloque de inizialización del dominio ## Hecho.
|
|
||||||
# Revisar la condicion de domain_join ## Hecho.
|
|
||||||
# Cuidado con la copia de KRB5, revisar si lo hace ya el samba-tool. ## Hecho.
|
|
Loading…
Reference in New Issue