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: https://github.com/vitabaks/postgresql_cluster/issues/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.