1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-06-04 23:37:12 +00:00
community.general/plugins
patchback[bot] f074ca9b05
[PR #12097/850ef03f backport][stable-13] snap: enforce hold when installing at a specific revision (#12101)
snap: enforce hold when installing at a specific revision (#12097)

* snap: enforce hold when installing at a specific revision

When `revision` is specified, run `snap refresh --hold` after install/refresh
to actually pin the snap and prevent automatic updates from overriding it.
Detects hold-mismatch idempotently via the Notes column of `snap list`.

Fixes #12088



* feat(changelog): add fragment for snap hold fix (#12097)



* test(snap): remove incorrect manual-refresh assertion from hold test

snap refresh --hold only blocks the snapd auto-refresh daemon; a manual
snap refresh bypasses the hold. Remove the block that ran snap refresh
manually and asserted the revision was unchanged.



* snap: add bare-refresh hold test and docs warning for manual refresh bypass



---------


(cherry picked from commit 850ef03fe7)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-25 15:58:44 +02:00
..
action [PR #12093/1bf5e6e6 backport][stable-13] iptables_state: clean up code (#12098) 2026-05-25 15:34:01 +02:00
become pfexec become plugin: fix broken defaults for illumos/SmartOS (#11623) 2026-04-25 21:12:36 +02:00
cache Sort imports with ruff check --fix (#11400) 2026-01-09 07:40:58 +01:00
callback Start opentelemetry spans on host start instead of task start (#11434) 2026-05-17 11:28:15 +02:00
connection saltstack connection plugin: add documentation (#11992) 2026-05-07 07:36:47 +12:00
doc_fragments onepassword* lookups: drop support for op v1 (#12061) 2026-05-18 05:12:14 +02:00
filter to_ini filter plugin: add no_extra_spaces parameter (#8576) (#12059) 2026-05-16 14:56:52 +02:00
inventory nmap inventory plugin: add skip_host_discovery option (#11955) 2026-05-10 10:20:08 +02:00
lookup onepassword* lookups: drop support for op v1 (#12061) 2026-05-18 05:12:14 +02:00
module_utils [PR #12097/850ef03f backport][stable-13] snap: enforce hold when installing at a specific revision (#12101) 2026-05-25 15:58:44 +02:00
modules [PR #12097/850ef03f backport][stable-13] snap: enforce hold when installing at a specific revision (#12101) 2026-05-25 15:58:44 +02:00
plugin_utils Lookup plugins: prevent using _terms for positional arguments, and reject positional arguments completely for lookups that don't use them (#12060) 2026-05-17 09:43:21 +02:00
test Make all doc fragments, module utils, and plugin utils private (#11896) 2026-04-20 20:16:26 +02:00