Commit 532c76e
committed
Determine
While `first_server.yml` would only be included for the 1st server of a cluster,
`run_once` for setting the `active_server` fact also meant this would only happen once
for all clusters instead of once per cluster.
Use a loop across the members of each cluster and a fact delegation instead, to set the
`active_server` fact instead on each cluster member to the `inventory_hostname` of the
server, for which `first_server.yml` was included.active_server once per cluster, not once for all1 parent 1f4dd6e commit 532c76e
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
149 | 151 | | |
150 | 152 | | |
151 | 153 | | |
| |||
0 commit comments