寻找如何以提升的权限执行 powershell win_command 的指导。
我的剧本示例:
---
- name: Run powershell script
hosts: win
gather_facts: false
tasks:
- name: windows test command
win_command: powershell.exe -
args:
stdin: ipconfig >> c:\ipconfig.txt
Run Code Online (Sandbox Code Playgroud)
这工作正常,因为它不需要提升权限,但如果我尝试需要 runas 管理员的东西,我似乎无法弄清楚,尝试添加 'become_method: runas' 不走运?
将多个TFS服务器整合到单个服务器中.
有什么建议?没有任何有损数据传输,如下所述:http: //visualstudiogallery.msdn.microsoft.com/eb77e739-c98c-4e36-9ead-fa115b27fefe
所有服务器都运行TFS2013