From 24a0dfa7505653ca866bb29be2255b18099f41e1 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sun, 23 Jun 2024 10:37:58 -0500 Subject: [PATCH] samba-dc: Gather facts for all DCs Since the `samba-dc.yml` playbook executes on a single host at a time, if the fact cache is not current, only the facts for the current host will be available. This prevents some tasks, especially the configuration of the trusted SSH host keys for `sysvolsync`, to have incorrect data. To avoid this, we need to explicitly gather facts for all of the domain controllers before starting to configure any of them. --- samba-dc.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/samba-dc.yml b/samba-dc.yml index 83234c4..02731ef 100644 --- a/samba-dc.yml +++ b/samba-dc.yml @@ -1,3 +1,11 @@ +- hosts: samba-dc + gather_facts: false + tasks: + - name: clear facts + meta: clear_facts +- hosts: samba-dc + gather_facts: true + - hosts: samba-dc serial: 1 roles: