Всем привет!
Пытаюсь поставить SQL Server 2016 на Windows Server 2012 R2 при помощи Ansible развернутом на CentOS 7.
Дистрибутив SQL лежит локально на целевой машине.
Установка запускается с помощью PS скрипта:
"Start-Process -FilePath C:\\soft\\SQL\\en_sql_server_2016_developer_with_service_pack_2_x64_dvd_12194995\\setup.exe /configurationfile=C:\\soft\\SQL\\ConfigurationFile.ini"
Запускаемый playbook:
- name: SQL Server
hosts: testserver
tasks:
- name: Install MS SQL Server 2016
win_shell: Start-Process -FilePath C:\soft\SQL\en_sql_server_2016_developer_with_service_pack_2_x64_dvd_12194995\setup.exe /configurationfile=C:\soft\SQL\ConfigurationFile.ini
В Ansible получаю результат:
changed: [172.27.46.19] => {
"changed": true,
"cmd": "Start-Process -FilePath C:\\soft\\SQL\\en_sql_server_2016_developer_with_service_pack_2_x64_dvd_12194995\\setup.exe /configurationfile=C:\\soft\\SQL\\ConfigurationFile.ini",
"delta": "0:00:00.281262",
"end": "2020-09-03 12:22:04.376021",
"rc": 0,
"start": "2020-09-03 12:22:04.094758",
"stderr": "",
"stderr_lines": [],
"stdout": "",
"stdout_lines": []
}
META: ran handlers
META: ran handlers
PLAY RECAP ******************************************************************************
172.27.46.19 : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
при этом скрипт
C:\soft\SQL\en_sql_server_2016_developer_with_service_pack_2_x64_dvd_12194995\setup.exe /configurationfile=C:\soft\SQL\ConfigurationFile.ini
на целевой машине из PS запускает установку
с Ansible простой скрипт создания каталога выполняется без ошибок:
- name: Create a directory using PowerShell
hosts: testserver
tasks:
- name: Create dir temp
win_shell: New-Item -Path C:\Temp -ItemType Directory
Никто не сталкивался с подобной проблемой? или кто подскажет где м.б. ошибка? Спасибо!