# while trying to stop or start service i am seeing an error Interactive authentication required

**URL:** <https://forum.ansible.com/t/while-trying-to-stop-or-start-service-i-am-seeing-an-error-interactive-authentication-required/27432>\
**Category:** Ansible Project\
**Created:** [May 3, 2018, 3:00am UTC](https://forum.ansible.com/t/while-trying-to-stop-or-start-service-i-am-seeing-an-error-interactive-authentication-required/27432 "2018-05-03T03:00:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandeep\_kumar](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sandeep\_kumar](https://forum.ansible.com/u/sandeep_kumar)\
**Post date:** [May 3, 2018, 3:00am UTC](https://forum.ansible.com/t/while-trying-to-stop-or-start-service-i-am-seeing-an-error-interactive-authentication-required/27432/1 "2018-05-03T03:00:50Z")

</div>

Hello All,

I am new to ansible ,wrote a playbook to start service i am seeing the below error ,can anyone suggest me

TASK [stop service] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [172.31.91.173]: FAILED! =\> {“changed”: false, “failed”: true, “msg”: “Failed to start umountroot.service: Interactive authentication required.\nSee system logs and ‘systemctl status umountroot.service’ for details.\n”}  
fatal: [172.31.93.45]: FAILED! =\> {“changed”: false, “failed”: true, “msg”: “Failed to start umountroot.service: Interactive authentication required.\nSee system logs and ‘systemctl status umountroot.service’ for details.\n”}

Thanks  
Sandeep

---

<div class="post-metadata">

**Author:** ![hans\_petterson](https://avatars.discourse-cdn.com/v4/letter/h/8dc957/32.png) [@hans\_petterson](https://forum.ansible.com/u/hans_petterson)\
**Post date:** [May 3, 2018, 6:46am UTC](https://forum.ansible.com/t/while-trying-to-stop-or-start-service-i-am-seeing-an-error-interactive-authentication-required/27432/2 "2018-05-03T06:46:34Z")

</div>

Hi Sandeep,

i assume you forgot to set

`  
ansible\_become = true

`

in the ansible.cfg (or in the vars setion).

You are executing systemctl with a unprivilegued user.

Yours, Hans

---

<div class="post-metadata">

**Author:** ![sandeep\_kumar](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sandeep\_kumar](https://forum.ansible.com/u/sandeep_kumar)\
**Post date:** [May 3, 2018, 2:40pm UTC](https://forum.ansible.com/t/while-trying-to-stop-or-start-service-i-am-seeing-an-error-interactive-authentication-required/27432/3 "2018-05-03T14:40:25Z")

</div>

Hi Hans

I have edited the yml file with become =true in the yml it started to work when i exeucte the playbook using sudo

yml file
