From 40c1e21e93685ca1abbe11bafdb68264433103d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavi=20Lle=C3=B3=20Tom=C3=A1s?= Date: Thu, 16 Jan 2025 11:50:41 +0100 Subject: [PATCH] =?UTF-8?q?refs=20#8142:=20Package=20installation=20moved?= =?UTF-8?q?=20to=20the=20beginning.=C3=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- roles/services/tasks/adsamba.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/roles/services/tasks/adsamba.yml b/roles/services/tasks/adsamba.yml index 4d1769c..b702422 100644 --- a/roles/services/tasks/adsamba.yml +++ b/roles/services/tasks/adsamba.yml @@ -18,6 +18,12 @@ - name: Gather installed packages 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 stat: path: /var/lib/samba/private/sam.ldb.d/metadata.tdb @@ -44,12 +50,7 @@ - when: "not domain_exists" 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 blockinfile: path: /etc/hosts @@ -109,9 +110,13 @@ block: - name: Extracting variables - no_log: true + #no_log: true 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 nsupdate: @@ -139,8 +144,3 @@ value: '{{ name_ad }}.{{ realm }}.' 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. \ No newline at end of file