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.
frigate-exporter
Dustin 2024-06-23 10:37:58 -05:00
parent b5eac25f14
commit 24a0dfa750
1 changed files with 8 additions and 0 deletions

View File

@ -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: