Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Disable privilege escalation for temp file deletion tasks #421

Merged
merged 1 commit into from
Jul 15, 2023

Conversation

vitabaks
Copy link
Owner

Issue: #414

Previously, tasks involving the deletion of temporary files, where delegation to localhost was employed, were unnecessarily requiring sudo privileges. This was causing issues during execution, as the tasks were prompting for a sudo password and failing if not provided.

To address this, we've added become: false to these tasks. This disables privilege escalation for these specific tasks, allowing them to execute without needing sudo permissions. It's important to note that this change doesn't affect the security or functionality of our playbook. Instead, it streamlines execution by eliminating unnecessary privilege requests.

This fix has been applied to all tasks involving the deletion of temporary files where delegate_to: localhost is used.

With this update, we expect smoother and more efficient playbook runs, improving our automation capabilities.

Issue: #414

Previously, tasks involving the deletion of temporary files, where delegation to localhost was employed, were unnecessarily requiring sudo privileges. This was causing issues during execution, as the tasks were prompting for a sudo password and failing if not provided.

To address this, we've added become: false to these tasks. This disables privilege escalation for these specific tasks, allowing them to execute without needing sudo permissions. It's important to note that this change doesn't affect the security or functionality of our playbook. Instead, it streamlines execution by eliminating unnecessary privilege requests.

This fix has been applied to all tasks involving the deletion of temporary files where delegate_to: localhost is used. With this update, we expect smoother and more efficient playbook runs, improving our automation capabilities.
@vitabaks vitabaks merged commit 48f019d into master Jul 15, 2023
18 checks passed
@vitabaks vitabaks deleted the localhost-become-false branch July 21, 2023 20:47
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