title: How to create ansible galaxy roles in windows?
body: <p>I am learning ansible from ansible-beginner to pro by micheal heap. It seems that ansible is not supported on windows. The book suggests running ansible from a virtual machine instead. I started a VMbox using vagrant, which has ubuntu/trusty64 on it. I am successfully able to run my playbooks on it. However, I ran into an issue when creating ansible-galaxy roles.</p>
  
  <p>I could not find a way to create/ initialize a role on windows. I vaguely borrowed ideas from this question <a href="https://stackoverflow.com/questions/25230376/how-to-automatically-install-ansible-galaxy-roles">How to automatically install Ansible Galaxy roles?</a> and added the following command to my playbook create roles on windows 
  <code>local_action: command ansible-galaxy init sush.util --init-path roles</code></p>
  
  <pre><code>---
  - hosts: all
    gather_facts: false
    become: true
    tasks:
      - name: make sure we can connect
        ping:
      #ansible-galaxy
      - name: Init sush.util
        local_action: command ansible-galaxy init sush.util --init-path roles
        ignore_errors: true
  </code></pre>
  
  <p>I also added <code>ignore_errors=true</code> to ignore the errors if the role has already been created. 
  Is this the correct approach or is there another/better to do this in windows ?</p>