Files
product-demos/windows/powershell.yml
2023-03-13 11:59:15 -04:00

18 lines
364 B
YAML

---
- name: Run PowerShell
hosts: "{{ _hosts | default('os_windows') }}"
gather_facts: false
vars:
ps_script: undef
tasks:
- name: Run PowerShell
ansible.windows.win_powershell:
script: |
{{ ps_script }}
register: ps_output
- name: Print output
ansible.builtin.debug:
msg: "{{ ps_output.output }}"