我正在将我的linux脚本转换为windows。有一个名为" script“的模块是可用的,它在远程目标计算机上运行本地脚本。但不存在等价类win_script模。当我使用win_shell模块时,它期望该文件位于远程计算机中。
- name: Create a filesystem and perform IO operation using powershell script
win_shell: "{{pshfile}} {{disc_ip}} {{storage_array_vol}} {{file1}}"有没有任何方法可以通过ansible将本地powershell脚本运行到远程计算机?
发布于 2019-08-16 08:10:51
首先将脚本复制到目标节点,然后执行它。module.html
https://stackoverflow.com/questions/57520541
复制相似问题