Centos 7, Ansible 1.9.1 : module win_copy not found in configured module paths

Hi,

I’m new to Ansible. We’re evaluating configuration management tools that can work in our mixed Linux / windows environment. I’ve been through these tutorials so far:

http://docs.ansible.com/intro_getting_started.html
http://docs.ansible.com/intro_windows.html

I am able to successfully win_ping using this command:

ansible windows -m win_ping

153.61.152.179 | success >> {
“changed”: false,
“ping”: “pong”
}

When I try to copy a file using win_copy I get this error output:

ansible windows -m win_copy -a “src=/bob.txt dest=c:\bob.tt”

153.61.152.179 | FAILED => module win_copy not found in configured module paths. Additionally, core modules are missing. If this is a checkout, run ‘git submodule update --init --recursive’ to correct this problem.

This is what I see when I look for the ansible version:

ansible --version

ansible 1.9.1
configured module search path = None

I need guidance on what my next steps should be. This is a new tool and a new community of users for me, so please let me know if I’ve missed something. I’m looking for help to know what to do next. :slight_smile:

Thanks!

win_copy is not part of 1.9.1, it will be included in 1.9.2

Thank you for the quick reply!

Any estimate on when 1.9.2 will drop? I could really use it.

J

Slam, win_copy is available in the devel branch of ansible-modules-core, so if you want to test it you can pull down that repo and point to it using the “ANSIBLE_LIBRARY” env variable. I guess tha’ts not an option for production usage tho.

Since you’re stating that you’re evaluating and quite new to Ansible:

This should give you win_copy:

cd ~
mkdir repos
cd repos
git clone https://github.com/ansible/ansible-modules-core.git
cd ansible-modules-core
git checkout devel
cd ~
export ANSIBLE_LIBRARY=~/repos/ansible-modules-core

1.9.2 should be out this week, baring any surprises.

That worked for me, thank you! I like how straight forward it is to get automated tasks running.

Looking forward to the release.