Created
June 21, 2018 19:35
-
-
Save glennswest/c15382f8befe6f3d8895d07a31b02a09 to your computer and use it in GitHub Desktop.
For privileged command for named pipes, you either have to use credssp transport or a schedule task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: winnode01 | |
gather_facts: no | |
tasks: | |
- name: create a schedule task | |
win_scheduled_task: | |
name: ovnsetguid | |
description: Set OVN System Guid | |
executable: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe | |
arguments: -ExecutionPolicy Unrestricted -NonInteractive ovs-vsctl set Open_vSwitch . external_ids:system-id=1919 | |
frequency: once | |
enabled: true | |
time: "14:00:00" | |
- name: Run the schedule task | |
win_shell: Start-ScheduledTask -TaskName ovnsetguid | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment