# ansible error

**URL:** <https://forum.ansible.com/t/ansible-error/37781>\
**Category:** Ansible Project\
**Created:** [March 18, 2023, 2:10pm UTC](https://forum.ansible.com/t/ansible-error/37781 "2023-03-18T14:10:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ismayil\_Eyyublu](https://avatars.discourse-cdn.com/v4/letter/i/e47c2d/32.png) [@Ismayil\_Eyyublu](https://forum.ansible.com/u/Ismayil_Eyyublu)\
**Post date:** [March 18, 2023, 2:10pm UTC](https://forum.ansible.com/t/ansible-error/37781/1 "2023-03-18T14:10:49Z")

</div>

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

 ![WhatsApp Image 2023-03-18 at 17.40.09 (1).jpeg](https://us1.discourse-cdn.com/ansible/original/2X/b/b5cd91d0110c106793f10c98809bba8188c06a17.jpeg) ![WhatsApp Image 2023-03-18 at 17.40.09.jpeg](https://us1.discourse-cdn.com/ansible/original/2X/9/91317b5f722d26f00895714873aed720b5658329.jpeg)

---

<div class="post-metadata">

**Author:** ![varun\_johar](https://avatars.discourse-cdn.com/v4/letter/v/b38774/32.png) [@varun\_johar](https://forum.ansible.com/u/varun_johar)\
**Post date:** [March 18, 2023, 2:28pm UTC](https://forum.ansible.com/t/ansible-error/37781/2 "2023-03-18T14:28:24Z")

</div>

remove below

become\_user: root

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

> **(attachments)**
>
> ![WhatsApp Image 2023-03-18 at 17.40.09.jpeg](https://us1.discourse-cdn.com/ansible/original/2X/9/91317b5f722d26f00895714873aed720b5658329.jpeg)  
> ![WhatsApp Image 2023-03-18 at 17.40.09 (1).jpeg](https://us1.discourse-cdn.com/ansible/original/2X/b/b5cd91d0110c106793f10c98809bba8188c06a17.jpeg)

---

<div class="post-metadata">

**Author:** ![Rilindo\_Foster1](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@Rilindo\_Foster1](https://forum.ansible.com/u/Rilindo_Foster1)\
**Post date:** [March 18, 2023, 9:02pm UTC](https://forum.ansible.com/t/ansible-error/37781/3 "2023-03-18T21:02:40Z")

</div>

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)**
>
> ![WhatsApp Image 2023-03-18 at 17.40.09.jpeg](https://us1.discourse-cdn.com/ansible/original/2X/9/91317b5f722d26f00895714873aed720b5658329.jpeg)  
> ![WhatsApp Image 2023-03-18 at 17.40.09 (1).jpeg](https://us1.discourse-cdn.com/ansible/original/2X/b/b5cd91d0110c106793f10c98809bba8188c06a17.jpeg)
