Your own user might have root, but the ansibke user probably isn't.
You can enable ansible privilege escalation by adding become: true
in your yaml file.
It is likely safer in the long run to set it for a specific task than globally.
Support / questions about Lemmy.
Your own user might have root, but the ansibke user probably isn't.
You can enable ansible privilege escalation by adding become: true
in your yaml file.
It is likely safer in the long run to set it for a specific task than globally.
LPT you can set ansible output to human readable to prevent a you-are-not-a-json-parser stroke
You may be running apt upgrade
in another terminal, or it didn't complete properly in the past. Anyway it cannot install packages so you need to fix that.