On 30/12/2021 09:16, Kerem Kalayci wrote:
Hi everyone, i'm newbie at ansible yml. I am trying to run a command like below. But I am getting an error as below. where am i doing wrong?- gather_facts: False name: LINGO'da komut hosts: xxx remote_user: xxx tasks: - name: Run basic PowerShell script win_powershell: script: | C:\Users\emperior\Desktop\run_command.ps1
Looks like wrong indentation, please try this:
tasks:
- name: Run basic PowerShell script
win_powershell:
script: |
C:\Users\emperior\Desktop\run_command.ps1
Regards
Racke
ERROR! conflicting action statements: win_powershell, script The error appears to be in '/tmp/awx_13485_rbw826y0/project/5-create-iso.yml': line 10, column 7, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: tasks: - name: Run basic PowerShell script ^ here -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/365641a3-53a5-4012-b9c2-254ebf2c433an%40googlegroups.com <https://groups.google.com/d/msgid/ansible-project/365641a3-53a5-4012-b9c2-254ebf2c433an%40googlegroups.com?utm_medium=email&utm_source=footer>.
-- Ecommerce and Linux consulting + Perl and web application programming. Debian and Sympa administration. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/cc05afff-dd46-60f5-4099-31f29f1cf685%40linuxia.de.
OpenPGP_signature
Description: OpenPGP digital signature
