Files
ansible-project/execute_command_ps.yml
2025-11-06 12:25:50 +01:00

14 lines
291 B
YAML

---
- name: Execute Powershell Command
hosts: all
tasks:
- name: On execute la commande "{{ command }}"
ansible.windows.win_shell: "{{ powershell_path }} {{ command }}"
args:
chdir: "{{ execution_path }}"
register: ps_script
- debug:
msg: "{{ ps_script }}"