Skip to content

Instantly share code, notes, and snippets.

@glennswest
Created June 21, 2018 19:35
Show Gist options
  • Save glennswest/c15382f8befe6f3d8895d07a31b02a09 to your computer and use it in GitHub Desktop.
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
- 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