mssql-tools breaks yum update

29 views
Skip to first unread message

Jeremy Van Veelen

unread,
Oct 22, 2020, 1:02:34 PM10/22/20
to Ansible Project
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
/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


Stefan Hornburg (Racke)

unread,
Oct 23, 2020, 1:54:09 AM10/23/20
to ansible...@googlegroups.com
This is really not a question related to Ansible, but setting the environment variable ACCEPT_EULA to Y
should to the trick:

- yum:
...
environment:
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

You can also use FreeTDS instead of the Microsoft driver.

Regards
Racke

>
>
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/9bc6a34e-00e0-40ce-aba8-803841617f40n%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/9bc6a34e-00e0-40ce-aba8-803841617f40n%40googlegroups.com?utm_medium=email&utm_source=footer>.


--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

signature.asc
Reply all
Reply to author
Forward
0 new messages