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

416 views
Skip to first unread message

rcn...@gmail.com

unread,
Jun 16, 2015, 3:40:54 PM6/16/15
to ansible...@googlegroups.com

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. :)

Thanks!

Brian Coca

unread,
Jun 16, 2015, 4:10:20 PM6/16/15
to ansible...@googlegroups.com
win_copy is not part of 1.9.1, it will be included in 1.9.2


--
Brian Coca

rcn...@gmail.com

unread,
Jun 16, 2015, 5:04:04 PM6/16/15
to ansible...@googlegroups.com
Thank you for the quick reply!

Slim Slam

unread,
Jun 17, 2015, 8:22:53 PM6/17/15
to ansible...@googlegroups.com
Any estimate on when 1.9.2 will drop? I could really use it.

J

Trond Hindenes

unread,
Jun 18, 2015, 4:15:37 AM6/18/15
to ansible...@googlegroups.com
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.

Trond Hindenes

unread,
Jun 18, 2015, 4:19:30 AM6/18/15
to ansible...@googlegroups.com
Since you're stating that you're evaluating and quite new to Ansible:

This should give you win_copy:

cd ansible-modules-core
git checkout devel
cd ~
export ANSIBLE_LIBRARY=~/repos/ansible-modules-core


On Thursday, June 18, 2015 at 2:22:53 AM UTC+2, Slim Slam wrote:

Brian Coca

unread,
Jun 18, 2015, 3:02:20 PM6/18/15
to ansible...@googlegroups.com
1.9.2 should be out this week, baring any surprises.


--
Brian Coca

rcn...@gmail.com

unread,
Jun 18, 2015, 5:44:50 PM6/18/15
to ansible...@googlegroups.com
That worked for me, thank you! I like how straight forward it is to get automated tasks running.

Looking forward to the release.
Reply all
Reply to author
Forward
0 new messages