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
parent
b5eac25f14
commit
24a0dfa750
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue