[Ansible] Auto Accept License When Install msodbcsql17 rpm

https://aka.ms/odbc131eula and found in
/usr/share/doc/msodbcsql/LICENSE.TXT . By entering 'YES',
you indicate that you accept the license terms.

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

Environment

Issue

The license terms for this product can be downloaded from
https://aka.ms/odbc131eula and found in
/usr/share/doc/msodbcsql/LICENSE.TXT . By entering 'YES',
you indicate that you accept the license terms.

Do you accept the license terms? (Enter YES or NO)
YES
changed: [localhost] => {
...

Fix

- name: Install unixODBC
yum:
state: present
name:
- /tmp/msodbcsql.rpm
# Disable all repos since we install local
disablerepo: "*"
environment:
ACCEPT_EULA: 'y'

--

--

--

Senior Cloud Engineer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Sherlogs + quick-logger-be: create, view and search through your logs with ease

Employee Spotlight — Joe

Stop Messing With The Hosts File

General programming books to get better with

Understanding Algorithms and Data Structures.

Gutenberg 2.9 and My Contributions

How to Launch An AWS EC2 Server And Accessing your EC2 Instance via SSH

Codeworks Bootcamp: Week 3 & 4 (Coronavirus Home Office Edition)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Tony

Tony

Senior Cloud Engineer

More from Medium

Linux — File System Deep Dive

How to create and edit Kubernetes yaml files on the fly

How To Debug Docker Build

Container Base Image