# Questions about enabling the firewall in windows

**URL:** <https://forum.ansible.com/t/questions-about-enabling-the-firewall-in-windows/31539>\
**Category:** Ansible Project\
**Tags:** windows, ubuntu\
**Created:** [October 24, 2019, 4:22pm UTC](https://forum.ansible.com/t/questions-about-enabling-the-firewall-in-windows/31539 "2019-10-24T16:22:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronny\_saavedra](https://avatars.discourse-cdn.com/v4/letter/r/7ba0ec/32.png) [@ronny\_saavedra](https://forum.ansible.com/u/ronny_saavedra)\
**Post date:** [October 24, 2019, 4:22pm UTC](https://forum.ansible.com/t/questions-about-enabling-the-firewall-in-windows/31539/1 "2019-10-24T16:22:49Z")

</div>

Good afternoon with everyone, I hope you have a great day.  
Could you help me with a problem, I will explain my problem shortly:  
I am in charge of creating instances from amis already designed, I think it’s great I am working with ansible and json.  
When creating instances in Linux, I’m doing great, the question is when I try to create instances in windows. The instance creates me but does not give me access, I think it is through the firewall, I saw a module of “firewalld” in ansible to adapt it to my pc but it tells me that the python does not grab.  
I read in other articles and saw that the firewalld module is generating conflicts with python.  
The question I wish to solve that problem to close my sprint and see other tasks, if someone of good will can help me I would appreciate it.  
I am using these parameters:

ubuntu: 18.04

ansible: 2.8.6

python: 2.7.15+

aws\_friendly\_region: ‘us-east-1 : US East (N. Virginia)’

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [October 25, 2019, 12:51pm UTC](https://forum.ansible.com/t/questions-about-enabling-the-firewall-in-windows/31539/2 "2019-10-25T12:51:41Z")

</div>

Hi

> Good afternoon with everyone, I hope you have a great day.  
> Could you help me with a problem, I will explain my problem shortly:  
> I am in charge of creating instances from amis already designed, I think it's great I am working with ansible and json.  
> When creating instances in Linux, I'm doing great, the question is when I try to create instances in windows. The instance creates me but does not give me access, I think it is through the firewall, I saw a module of "firewalld" in ansible to adapt it to my pc but it tells me that the python does not grab.  
> I read in other articles and saw that the firewalld module is generating conflicts with python.  
> The question I wish to solve that problem to close my sprint and see other tasks, if someone of good will can help me I would appreciate it.  
> I am using these parameters:
> 
> ubuntu: 18.04
> 
> ansible: 2.8.6
> 
> python: 2.7.15+
> 
> aws\_friendly\_region: 'us-east-1 : US East (N. Virginia)'

Could you please tell clearly:

- What you are trying to achieve.  
- How you are doing this.  
- What problems you encounter.  
- Which command did you run, and what output did you get from that  
(copied as text, not as images/attachments/screenshots)  
- What the relevant tasks/playbooks/code/variables look like

---

<div class="post-metadata">

**Author:** ![ronny\_saavedra](https://avatars.discourse-cdn.com/v4/letter/r/7ba0ec/32.png) [@ronny\_saavedra](https://forum.ansible.com/u/ronny_saavedra)\
**Post date:** [October 25, 2019, 3:22pm UTC](https://forum.ansible.com/t/questions-about-enabling-the-firewall-in-windows/31539/3 "2019-10-25T15:22:47Z")

</div>

> Good afternoon with everyone, I hope you have a great day.  
> Could you help me with a problem, I will explain my problem shortly:  
> I am in charge of creating instances from amis already designed, I think it’s great I am working with ansible and json.  
> When creating instances in Linux, I’m doing great, the question is when I try to create instances in windows. The instance creates me but does not give me access, I think it is through the firewall, I saw a module of “firewalld” in ansible to adapt it to my pc but it tells me that the python does not grab.  
> I read in other articles and saw that the firewalld module is generating conflicts with python.  
> The question I wish to solve that problem to close my sprint and see other tasks, if someone of good will can help me I would appreciate it.  
> I am using these parameters:
> 
> ubuntu: 18.04
> 
> ansible: 2.8.6
> 
> python: 2.7.15+
> 
> aws\_friendly\_region: ‘us-east-1 : US East (N. Virginia)’

1. I am trying to create instances in windows from amis, for linux if it is created.

2. I am running my playbook to create my instance, this one does compile me but does not give me remote access.

3. The problem is that I cannot log in remotely and see my instance, I am using remmina in this way: ip, username, password. All this in RDP.

4. 

The playbook I run it this way:

**ansible-playbook -e @variables.yml -i hosts site.yml**

After that I do the 3. Here the remina does not open to me.  
5. It is in my work mode:

templates---------→ groupvars.j2  
vars---------------→ kp-xxx.pem

> 

------------→ main.yml  
hosts  
secrets.json  
site.yml  
variables.yml

**In hosts:**

[local]  
localhost

[webserver]

**In secrets.json:**

{  
“aws\_access\_key”: “ABC”,  
“aws\_secret\_key”: “123C”  
}

**In variables.yml:**
