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:
- Be on Ubuntu 14.04
- Install Ansible 2.1.1.0
- 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.