# How to over come the password prompts while installing packages

**URL:** <https://forum.ansible.com/t/how-to-over-come-the-password-prompts-while-installing-packages/32894>\
**Category:** Ansible Developer\
**Created:** [May 9, 2020, 7:51am UTC](https://forum.ansible.com/t/how-to-over-come-the-password-prompts-while-installing-packages/32894 "2020-05-09T07:51:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jayanth\_reddy](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@jayanth\_reddy](https://forum.ansible.com/u/jayanth_reddy)\
**Post date:** [May 9, 2020, 7:51am UTC](https://forum.ansible.com/t/how-to-over-come-the-password-prompts-while-installing-packages/32894/1 "2020-05-09T07:51:46Z")

</div>

Hello,

Hope you are doing safe and well.

While I’m running apt-get install mythtv-database package I’m getting one pop-up screen (as attached)where I need to enter my database password. How can I overcome that using Ansible(yaml script) Attached here.

I have tried this by using debconf module but i’m facing an error with mysql user. Here i’m attaching my YML script and error that i’m facing. Can someone help me on this.

Cheers,  
Jayanth

> **(attachments)**
>
> ![myth.yml.png](https://us1.discourse-cdn.com/ansible/original/2X/f/f643b05f6df714200fe2f6681111a8ef2c9c4fca.png)  
> ![mythdata-base error.png](https://us1.discourse-cdn.com/ansible/original/2X/9/99e48fe4b207d98c8313f8500594600ee6f6cb79.png)  
> ![WhatsApp Image 2020-04-22 at 11.03.44 PM.jpeg](https://us1.discourse-cdn.com/ansible/original/2X/8/86604f1148a87c32e82edacf699f8e0e05b03187.jpeg)

---

<div class="post-metadata">

**Author:** ![rhysmeister](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/rhysmeister/32/10599_2.png) [@rhysmeister](https://forum.ansible.com/u/rhysmeister)\
**Post date:** [May 27, 2020, 5:10pm UTC](https://forum.ansible.com/t/how-to-over-come-the-password-prompts-while-installing-packages/32894/2 "2020-05-27T17:10:09Z")

</div>

It should be possible to use a credentials file… [https://www.serverlab.ca/tutorials/linux/database-servers/how-to-create-a-credential-file-for-mysql/](https://www.serverlab.ca/tutorials/linux/database-servers/how-to-create-a-credential-file-for-mysql/)

---

<div class="post-metadata">

**Author:** ![jayanth\_reddy](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@jayanth\_reddy](https://forum.ansible.com/u/jayanth_reddy)\
**Post date:** [May 30, 2020, 6:07pm UTC](https://forum.ansible.com/t/how-to-over-come-the-password-prompts-while-installing-packages/32894/3 "2020-05-30T18:07:14Z")

</div>

Hi,

Thank you for your email. I will work as per the suggestions.

Cheers,  
Jayanth
