Added a powershell example for ansible.builtin.script (#76980)

* Added a powershell example

None of the examples are of a form that actually works with powershell/windows hosts. The added last example actually works with Windows hosts and Ansible. Inspired by: https://devops.stackexchange.com/questions/15409/ansible-how-to-run-local-powershell-script-on-remote-hosts

* Trivial PEP fix
pull/76667/merge
James T Snell 2 years ago committed by GitHub
parent 8582df36c5
commit eb093ae7c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -102,4 +102,7 @@ EXAMPLES = r'''
ansible.builtin.script: /some/local/script.py
args:
executable: python3
- name: Run a Powershell script on a windows host
script: subdirectories/under/path/with/your/playbook/script.ps1
'''

Loading…
Cancel
Save