diff options
| author | Matthew Fennell <matthew@fennell.dev> | 2026-01-02 13:24:33 +0000 |
|---|---|---|
| committer | Matthew Fennell <matthew@fennell.dev> | 2026-01-02 13:24:33 +0000 |
| commit | 32bada629f7b2371c91177af834769c9435f3229 (patch) | |
| tree | 86288bd34af299fee7c7d19a0e8cbbc538123eef /.gitignore | |
| parent | c1a5a58d20488272bf0bcc4c4dc2ca11a8ea8fdb (diff) | |
Derive is_transport_server from transport count
I have two different kinds of servers - transport servers (which connect to
legacy networks and have s2s disabled) and non-transport servers (which are
XMPP-only and have s2s enabled).
I previously had an is_transport_server boolean defined for each host in the
inventory - however, this is duplicated information that can be derived from
the length of the transports value (which lists the legacy networks to
transport to).
Transport servers have a non-empty transports list, while non-transport servers
do not define the variable at all. So, handle this case in the playbook by
deriving an empty list if the value is not present.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions
