ansible error

Hi, there is some problem with ansible-playbook. I want to lock multiple laptops using i3lock.

remove below

become_user: root

since you have already mentioned become:yes, user has priviledge escalation.

(attachments)


Any reason you are using su as opposed to leaving it at the default (which is sudo)? If that is the intention, try running the playbook with:

ansible-playbook firstcommand.yml -K

And it will prompt you for the password that su normally asks.

Also, why screenshot?

(attachments)