The direction of current and future Ansible (as of 1.9+) appears to be removing sudo and using become for privilege escalation.
To that end, usage of sudo should be replaced with become and tasks which require escalated privileges should likely individually define the become usage.
The direction of current and future Ansible (as of 1.9+) appears to be removing
sudo
and usingbecome
for privilege escalation.To that end, usage of
sudo
should be replaced withbecome
and tasks which require escalated privileges should likely individually define thebecome
usage.