Skip nodev mount option for polyinstantiated dirs #14374
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Skip attempting to set
nodevmount option for polyinstantiated /tmp and /var/tmp mounts when enabledDescription:
Add clauses to skip trying to set the
nodevmount option for the polyinstantiated /tmp/tmp-inst and /var/tmp/tmp-inst mounts, when polyinstantiation is enabled.Rationale:
When applying the Ansible playbook with polyinstantiation enabled through become/sudo as a non-root user, the polyinstantiated /var/tmp/tmp-inst (and /tmp/tmp-inst) bind mounts are present in
ansible_facts.mounts, but cannot be changed with theansible.posix.mountmodule, which fails with an error (example from the generated role RedHatOfficial.rhel10_anssi_bp28_high):Review Hints:
N/A