Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

Install SQL server using ansible

$
0
0

I am new to ansible and trying to install SQL 2017 using ansible. I managed to download SQL onto the target server and mounted the ISO. Also downloaded the configuration file from our repository to the target server. I want to use the configuration file for unattended install but stuck in the following module, Please advice what I am doing wrong here. Thanks.

- name: Run setup from mounted iso

win_package:

path: '{{ disk_image_out.mount_paths[0] }}setup\setup.exe --config "c:\xxxxx\ConfigurationFile.ini"'

product_id: xxxxx-xxxxx-xxxxx-xxxxx-xxxxx

args:

login_name: sa

login_password: "{{ sa_password }}"

state: present

when: (SQL_installed.stdout is search('False'))


The error is below:

FAILED! = {"changed": false, "module_stderr": "Exception calling \"Run\" with \"1\" argument(s): \"Exception calling \"Invoke\" with \"0\"...


Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>