Files
configpolicy/samba-dc.yml
Dustin C. Hatch 24a0dfa750 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.
2024-06-23 10:43:15 -05:00

22 lines
371 B
YAML

- 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:
- kerberos
- dch-selinux
- samba-dc
- role: samba-cert
tags: samba-cert
tasks:
- name: set samba configuration facts
set_fact:
workgroup: '{{ workgroup }}'
tags: always