You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
I have .psl file i want to run that file on Ansible nodes ,So when i try to invoke the .psl file using adhoc command : ansible win1 -m win_command -a "powershell.exe -File C:\Sample\tomeescript.ps1" , It works fine
When i try to do the same with win_command module ,its failing
---
- hosts:win1
tasks:
- name : run psl
win_command: powershell.exe -
args:
chdir: C:\Sample\tomeescript.ps1
How to run the powershell script using playbook . I am not sure what mistake i did in the playbook
Stefan Hornburg (Racke)
unread,
Jan 29, 2020, 8:00:35 AM1/29/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
On 1/29/20 1:56 PM, Sai Prasha wrote:
> I have .psl file i want to run that file on Ansible nodes ,So when i try to invoke the .psl file using adhoc command :
> *ansible win1 -m win_command -a "powershell.exe -File C:\Sample\tomeescript.ps1" , *It works fine
> When i try to do the same with win_command module ,its failing
> ---
> - hosts:win1
> tasks:
> - name : run psl
> win_command: powershell.exe -
> args:
> chdir: C:\Sample\tomeescript.ps1
>
>
> How to run the powershell script using playbook . I am not sure what mistake i did in the playbook
Excuse me, but the name of the script certainly doesn't belong into the chdir parameter.