ec2_facts and Windows

149 views
Skip to first unread message

Julie Reier

unread,
Aug 26, 2015, 4:31:49 PM8/26/15
to Ansible Project
I'm hoping that I can get some help with using ansible to manage AWS Windows instances.

Firstly, l am new to ansible and Windows systems administration, but I'm pretty good with linux.

I am trying to write a playbook that deploys release artifacts to a Windows host. One of the first tasks in the playbook is to remove the Windows instance from a load balancer. I've already had success with removing a Linux instance from a load balancer using ec2_facts action and the ec2_elb module. When I try to run the same tasks with a Windows host, I'm getting this error for ec2_facts:

fatal: [10.200.0.38] => module ec2_facts 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.



Any advice and guidance will be very much appreciated. Thanks!

J Hawkesworth

unread,
Aug 28, 2015, 4:58:34 AM8/28/15
to Ansible Project
Hey

If you are using ansible from a  source (git checkout) then just do what the message says and run


git submodule update --init --recursive

This will then pick up the modules (which are stored in git submodules) and you should be good to go.

Hope that helps,

Jon

Julie Reier

unread,
Aug 28, 2015, 10:15:18 AM8/28/15
to ansible...@googlegroups.com

J Hawkesworth <j.r.hawkesworth <at> googlemail.com> writes:

>
>
> HeyIf you are using ansible from a  source (git checkout) then just do


what the message says and rungit submodule update --init --recursiveThis
will then pick up the modules (which are stored in git submodules) and you

should be good to go.Hope that helps,JonOn Wednesday, August 26, 2015 at


9:31:49 PM UTC+1, Julie Reier wrote:I'm hoping that I can get some help with

using ansible to manage AWS Windows instances.Firstly, l am new to ansible
and Windows systems administration, but I'm pretty good with linux.I am


trying to write a playbook that deploys release artifacts to a Windows host.
One of the first tasks in the playbook is to remove the Windows instance
from a load balancer. I've already had success with removing a Linux
instance from a load balancer using ec2_facts action and the ec2_elb module.
When I try to run the same tasks with a Windows host, I'm getting this error
for ec2_facts:
> fatal: [10.200.0.38] => module ec2_facts 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.
>
> Any advice and guidance will be very much appreciated. Thanks!
>
>
>
>
>

Thanks Jon. We did try that, but we are still getting the error about
ec2_facts not found in configured module paths. Note that the ec2_facts
module is found when running for linux hosts.

Rob White

unread,
Sep 22, 2015, 4:40:01 AM9/22/15
to Ansible Project
When running against windows hosts, Ansible will only find modules that have a .ps1 prefix. ec2_facts is a Linux only module.

I'm actually working on aa windows version at the moment and will hopefully submit a PR in the next week or so.

Reply all
Reply to author
Forward
Message has been deleted
0 new messages