# ec2\_facts and Windows

**URL:** <https://forum.ansible.com/t/ec2-facts-and-windows/19118>\
**Category:** Ansible Project\
**Tags:** windows, aws\
**Created:** [August 26, 2015, 8:24pm UTC](https://forum.ansible.com/t/ec2-facts-and-windows/19118 "2015-08-26T20:24:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julie\_Reier](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@Julie\_Reier](https://forum.ansible.com/u/Julie_Reier)\
**Post date:** [August 26, 2015, 8:24pm UTC](https://forum.ansible.com/t/ec2-facts-and-windows/19118/1 "2015-08-26T20:24:37Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [August 28, 2015, 8:58am UTC](https://forum.ansible.com/t/ec2-facts-and-windows/19118/2 "2015-08-28T08:58:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Julie\_Reier](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@Julie\_Reier](https://forum.ansible.com/u/Julie_Reier)\
**Post date:** [August 28, 2015, 2:09pm UTC](https://forum.ansible.com/t/ec2-facts-and-windows/19118/3 "2015-08-28T14:09:20Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Rob\_White](https://avatars.discourse-cdn.com/v4/letter/r/71c47a/32.png) [@Rob\_White](https://forum.ansible.com/u/Rob_White)\
**Post date:** [September 22, 2015, 8:40am UTC](https://forum.ansible.com/t/ec2-facts-and-windows/19118/4 "2015-09-22T08:40:00Z")

</div>

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.
