Files
community.general/plugins/modules
Alexei Znamensky d6cb56c022 osx_defaults: add dict support (#11659)
* osx_defaults: add dict support

* add changelog frag

* osx_defaults: fix dict idempotency by using plutil -extract for type-preserving read

The previous approach piped `defaults read` output (old-style plist text)
through `plutil -convert json`. Old-style plist loses boolean type info
(booleans appear as 1/0, indistinguishable from integers), causing the
comparison to fail and reporting changed=True on every run.

Fix by exporting the domain binary plist to a temp file and using
`plutil -extract key json` which correctly preserves all plist types
(booleans stay true/false, integers stay integers, etc.).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* change param from bool to str

* Apply suggestion from review

* Update plugins/modules/osx_defaults.py

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
2026-03-23 20:16:21 +01:00
..
2026-03-04 19:11:45 +13:00
2026-03-04 19:11:45 +13:00
2026-03-04 19:11:45 +13:00
2026-03-04 19:11:45 +13:00
2026-03-04 19:11:45 +13:00
2025-11-01 13:46:53 +01:00
2025-11-12 21:12:47 +01:00
2025-11-29 08:28:22 +01:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00
2026-01-05 18:12:39 +01:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00
2025-11-26 09:47:50 +13:00
2026-03-15 19:47:25 +01:00
2025-11-12 21:06:14 +01:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00
2026-01-31 21:30:39 +13:00
2025-11-12 21:12:47 +01:00
2025-11-01 13:46:53 +01:00
2026-03-13 07:44:21 +01:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00
2026-02-04 07:50:05 +01:00
2026-02-04 07:50:05 +01:00
2026-02-04 07:50:05 +01:00
2026-02-04 07:50:05 +01:00
2026-02-04 07:50:05 +01:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00
2026-02-04 07:50:05 +01:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00
2025-11-12 21:12:47 +01:00
2025-11-01 13:46:53 +01:00
2025-11-01 13:46:53 +01:00