14 lines
291 B
YAML
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 }}" |