Hi All,

getting the Following Error when trying to Run a Win_Shell Command:

fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "", 
"module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the 
exact error", "rc": 0}

The Following Command is what i'm currently using

---
    - name:
      hosts: localhost
      gather_facts: false
      connection: local
      tasks:
      - name: Setting up a Static IP Address
        win_shell: 'ipconfig | findstr /i "ipv4" '
        args:
          executable: cmd
        register: ipv4
      - debug:
           var: ipv4

-- 
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/8013bb6d-becf-454a-b3de-ab0f2d3d38c8n%40googlegroups.com.

Reply via email to