famedly / ansible-collection-base

`famedly.base` ansible collection for common basic services/tools like dns, ldap, ssh, ...
GNU Affero General Public License v3.0
0 stars 2 forks source link

Idempotent but still preferential ssh config ordering #230

Open jcgruenhage opened 4 months ago

jcgruenhage commented 4 months ago
          *Ideally*, we would keep the order as they are in the preset. Right now, this prefers sha256 over sha512 due to alphabetic sorting.

_Originally posted by @jcgruenhage in https://github.com/famedly/ansible-collection-base/pull/226#discussion_r1666522921_

We are not 100% sure where the regular changes came from, but it might be https://github.com/ansible/ansible/blob/775bc1110ea245dd8c9be8b92c91b3d748a27ab2/lib/ansible/plugins/filter/mathstuff.py#L86 not being deterministic.

If that is the case, we should probably have an ordered_intersect or something as our own filter.