12 lines
273 B
YAML
12 lines
273 B
YAML
---
|
|
- name: Execute Powershell Command
|
|
hosts: all
|
|
|
|
tasks:
|
|
|
|
- name: On execute la commande "{{ command }}"
|
|
ansible.windows.win_powershell:
|
|
script: "{{ command }}"
|
|
chdir: "{{ execution_path }}"
|
|
register: output
|
|
failed_when: output.output[0] != 0 |