# mssql-tools breaks yum update

**URL:** <https://forum.ansible.com/t/mssql-tools-breaks-yum-update/34085>\
**Category:** Ansible Project\
**Created:** [October 22, 2020, 5:02pm UTC](https://forum.ansible.com/t/mssql-tools-breaks-yum-update/34085 "2020-10-22T17:02:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JeremyVV](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jeremyvv/32/3392_2.png) [@JeremyVV](https://forum.ansible.com/u/JeremyVV)\
**Post date:** [October 22, 2020, 5:02pm UTC](https://forum.ansible.com/t/mssql-tools-breaks-yum-update/34085/1 "2020-10-22T17:02:34Z")

</div>

I have a patching playbook that works fine if the yum package installation doesn’t require any prompts, as per rpm best practices. Well when I ran my patching playbook to update my OS I discovered that mssql-tools upon rpm post-installation prompts to accept the license terms and get the following prompt:

The license terms for this product can be downloaded from  
[http://go.microsoft.com/fwlink/?LinkId=746949](http://go.microsoft.com/fwlink/?LinkId=746949) and found in  
/usr/share/doc/mssql-tools/LICENSE.txt . By entering ‘YES’,  
you indicate that you accept the license terms.

Do you accept the license terms? (Enter YES or NO)

Well this breaks my play. Has anybody figured out a work around for this type of breakage?

Thanks

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [October 23, 2020, 5:52am UTC](https://forum.ansible.com/t/mssql-tools-breaks-yum-update/34085/2 "2020-10-23T05:52:33Z")

</div>

> I have a patching playbook that works fine if the yum package installation doesn't require any prompts, as per rpm best  
> practices. Well when I ran my patching playbook to update my OS I discovered that mssql-tools upon rpm  
> post-installation prompts to accept the license terms and get the following prompt:
> 
> The license terms for this product can be downloaded from  
> [http://go.microsoft.com/fwlink/?LinkId=746949](http://go.microsoft.com/fwlink/?LinkId=746949) and found in  
> /usr/share/doc/mssql-tools/LICENSE.txt . By entering 'YES',  
> you indicate that you accept the license terms.
> 
> Do you accept the license terms? (Enter YES or NO)
> 
> Well this breaks my play. Has anybody figured out a work around for this type of breakage?
> 
> Thanks

This is really not a question related to Ansible, but setting the environment variable ACCEPT\_EULA to Y  
should to the trick:

- yum:  
&nbsp;&nbsp;...  
&nbsp;&nbsp;environment:  
&nbsp;&nbsp;&nbsp;&nbsp;ACCEPT\_EULA:Y

Reference:  
[https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-ver15#redhat17](https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-ver15#redhat17)

You can also use FreeTDS instead of the Microsoft driver.

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke
