Powershell templates (#5)

Windows Powershell Demos
This commit is contained in:
MKletz
2022-02-23 11:01:02 -06:00
committed by GitHub
parent 2041667534
commit 788cf7b675
4 changed files with 92 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
---
- name: Arbitrary PowerShell
hosts: "{{ HOSTS | default('windows') }}"
gather_facts: false
vars:
ps_script: undef
tasks:
- name: Run PowerShell
ansible.windows.win_powershell:
script: |
{{ ps_script }}
register: ps_output
- debug:
msg: "{{ ps_output.output }}"