Skip to content

fix(configure_snapraid): patch snapraid-btrfs before install and improve idempotency#137

Open
adamantike wants to merge 1 commit intomonstermuffin:mainfrom
adamantike:fix/idempotency-snapraid-btrfs
Open

fix(configure_snapraid): patch snapraid-btrfs before install and improve idempotency#137
adamantike wants to merge 1 commit intomonstermuffin:mainfrom
adamantike:fix/idempotency-snapraid-btrfs

Conversation

@adamantike
Copy link
Copy Markdown

Apply the snapraid-btrfs upstream patch (workaround for the mentioned unmerged PR) directly to the cloned source before copying, rather than patching the installed binary afterwards. This avoids always marking the Ansible task as changed due to the patch, and ensures the copy step only distributes the already-patched version, improving idempotency.

Also, add force: true to the git clone step so local modifications don't block updates, and track actual repo changes via before/after commit hashes to avoid false change reports.

Lastly, remove the redundant chmod task since the copy step already sets the correct mode.

…ove idempotency

Apply the `snapraid-btrfs` upstream patch (workaround for the mentioned
unmerged PR) directly to the cloned source before copying, rather than
patching the installed binary afterwards. This avoids always marking the
Ansible task as changed due to the patch, and ensures the copy step only
distributes the already-patched version, improving idempotency.

Also, add `force: true` to the git clone step so local modifications
don't block updates, and track actual repo changes via before/after
commit hashes to avoid false change reports.

Lastly, remove the redundant `chmod` task since the copy step already
sets the correct mode.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant