"Invalid settings supplied for scp_executable" Ansible 中的错误 Windows .exe 安装
"Invalid settings supplied for scp_executable" error in Ansible Windows .exe install
为什么会这样:
- name: Install Microsoft ASP.NET MVC 4
win_package:
path: https://download.microsoft.com/download/2/F/6/2F63CCD8-9288-4CC8-B58C-81D109F8F5A3/AspNetMVC4Setup.exe
arguments: '/q /norestart'
state: present
product_id: {aspmvc4}
这样的结果?
amazon-ebs: TASK [Install Microsoft ASP.NET MVC 4] **************************************************
amazon-ebs: fatal: [default]: FAILED! => {"msg": "Invalid settings supplied for scp_executable: Requested option scp_executable was not defined in configuration"}
我的两个软件安装(另一个是 .msi)都发生了这种情况
在这种情况下,我将 Ansible 与 Packer 一起使用,结果发现错误与缺少 [=17= 定义的 Ansible 连接插件(此处为 WinRM Communicator 标题:https://www.packer.io/docs/provisioners/ansible.html)有关].
示例[项目]/playbooks/connection_plugins/packer.py 可在此处找到:https://gist.github.com/adarobin/2f02b8b993936233e15d76f6cddb9e00
为什么会这样:
- name: Install Microsoft ASP.NET MVC 4
win_package:
path: https://download.microsoft.com/download/2/F/6/2F63CCD8-9288-4CC8-B58C-81D109F8F5A3/AspNetMVC4Setup.exe
arguments: '/q /norestart'
state: present
product_id: {aspmvc4}
这样的结果?
amazon-ebs: TASK [Install Microsoft ASP.NET MVC 4] **************************************************
amazon-ebs: fatal: [default]: FAILED! => {"msg": "Invalid settings supplied for scp_executable: Requested option scp_executable was not defined in configuration"}
我的两个软件安装(另一个是 .msi)都发生了这种情况
在这种情况下,我将 Ansible 与 Packer 一起使用,结果发现错误与缺少 [=17= 定义的 Ansible 连接插件(此处为 WinRM Communicator 标题:https://www.packer.io/docs/provisioners/ansible.html)有关].
示例[项目]/playbooks/connection_plugins/packer.py 可在此处找到:https://gist.github.com/adarobin/2f02b8b993936233e15d76f6cddb9e00