From a1b6e3a258e7a821facf74310cda73d4cceccbd5 Mon Sep 17 00:00:00 2001 From: Jon <1796012+MegaphoneJon@users.noreply.github.com> Date: Tue, 26 Mar 2024 11:15:28 -0400 Subject: [PATCH] Document sort_keys option in to_nice_json() filter (#82912) Added by https://github.com/ansible/ansible/pull/52341. --- lib/ansible/plugins/filter/to_nice_json.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/ansible/plugins/filter/to_nice_json.yml b/lib/ansible/plugins/filter/to_nice_json.yml index f40e22ca8f7..fa31b269de6 100644 --- a/lib/ansible/plugins/filter/to_nice_json.yml +++ b/lib/ansible/plugins/filter/to_nice_json.yml @@ -39,6 +39,10 @@ DOCUMENTATION: description: If V(True), keys that are not basic Python types will be skipped. default: False type: bool + sort_keys: + description: Affects sorting of dictionary keys. + default: True + type: bool notes: - Both O(vault_to_text) and O(preprocess_unsafe) defaulted to V(False) between Ansible 2.9 and 2.12. - 'These parameters to C(json.dumps) will be ignored, they are overridden for internal use: I(cls), I(default), I(indent), I(separators), I(sort_keys).'