🔥 3-day streak
CompTIA Linux+ (XK0-006)3 / 123
Question 3 of 123

An Ansible playbook runs as the unprivileged user 'deploy' via SSH. One task must install a package with the 'dnf' module, which requires root. The playbook connection succeeds, but the package task fails with a permissions error. Which change to the failing task correctly escalates privileges to root using sudo?

Reviewed for accuracy · Report an issueNext question