# ec2\_vpc\_nacl module not recognized

**URL:** <https://forum.ansible.com/t/ec2-vpc-nacl-module-not-recognized/22281>\
**Category:** Ansible Project\
**Tags:** ubuntu, aws\
**Created:** [August 12, 2016, 5:10pm UTC](https://forum.ansible.com/t/ec2-vpc-nacl-module-not-recognized/22281 "2016-08-12T17:10:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noah\_Huppert](https://avatars.discourse-cdn.com/v4/letter/n/c89c15/32.png) [@Noah\_Huppert](https://forum.ansible.com/u/Noah_Huppert)\
**Post date:** [August 12, 2016, 5:10pm UTC](https://forum.ansible.com/t/ec2-vpc-nacl-module-not-recognized/22281/1 "2016-08-12T17:10:52Z")

</div>

OS: Ubuntu 14.04  
Kernel: 4.4.0-31-generic  
Ansible: 2.1.1.0  
Ansible installation methods:

- Via APT PPA
- PIP (Python 2.7)  
Python: 2.7.6  
Install Python packages:
- boto
- boto3

Playbook:

# network\_test.yml

- name: setup AWS network elements  
hosts: localhost  
connection: local  
gather\_facts: False  
tasks:
- name: provision AWS ACL for bug report  
ec2\_vpc\_nacl:  
state: present  
vpc\_id: vpc-12345678  
name: strict-acl  
subnets: [‘strict-subnet’]  
tags:  
class: master-cluster  
ingress: [  
[100, ‘tcp’, ‘allow’, ‘0.0.0.0/0’, null, null, 80, 80]  
]  
egress: [  
[100, ‘tcp’, ‘allow’, ‘0.0.0.0/0’, null, null, 80, 80]  
]

Steps to reproduce:

1. Be on Ubuntu 14.04
2. Install Ansible 2.1.1.0
3. Attempt to use the ec2\_vpc\_nacl module in any way  
3.1. Error occurs in a role and regularly (As shown above)

The error itself:  
$ ansible-playbook network\_test.yml --syntax-check

ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.

The error appears to have been in ‘/usr/src/app/ansible/network\_test.yml’: line 6, column 7, but may  
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

tasks:

- name: provision AWS ACL for bug report  
^ here

The error appears to have been in ‘/usr/src/app/ansible/network\_test.yml’: line 6, column 7, but may  
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

tasks:

- name: provision AWS ACL for bug report  
^ here

This error suggests that I do not have an action in the task. That prompted me to see if Ansible even recognized ec2\_vpc\_nacl as a module.  
I checked by opening `ansible-console` and ran `? ec2_vpc_nacl` and quite unsurprisingly Ansible did not recognize it as a module.

Is there anything I have to do to complete the installation of ec2\_vpc\_nacl?

If I left out any useful debug information do not hesitate to ask for more.

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [August 12, 2016, 7:32pm UTC](https://forum.ansible.com/t/ec2-vpc-nacl-module-not-recognized/22281/2 "2016-08-12T19:32:58Z")

</div>

The documentation[1] says "New in version 2.2"  
You need to wait for 2.2 is released or build from source.

[1] [https://docs.ansible.com/ansible/ec2\_vpc\_nacl\_module.html](https://docs.ansible.com/ansible/ec2_vpc_nacl_module.html)
