ec2_vpc_route_table module

80 views
Skip to first unread message

Christian Del Pino

unread,
Feb 3, 2016, 1:10:54 AM2/3/16
to Ansible Project
Hello there. Currently using ansible 2.0.0.2-1ppa~vivid on ubuntu and I am having issues using one of the aws modules. Getting the following when trying to use the ec2_vpc_route_table module: 'ERROR: ec2_vpc_route_table is not a legal parameter in an Ansible task or handler'. does this mean the this extra module is not installed?

Christian Del Pino

unread,
Feb 3, 2016, 11:32:07 AM2/3/16
to Ansible Project
Example I currently have in place:

- name: Set up Internal Subnet route table
  ec2_vpc_route_table:
    vpc_id: "{{ vpc.vpc_id }}"
    region: "{{ aws_region }}"
    subnets:
      - "{{ subnet_internal }}"
    routes:
      - dest: 0.0.0.0/0
        instance_id: "{{ nat.instance[0]id }}"
  when: nat|changed
  tags:
    - vpcsetup

Arbab Nazar

unread,
Feb 3, 2016, 1:31:59 PM2/3/16
to Ansible Project
Can you please remove this and install via pip.

I have install the ansible 2 via pip and this module worked for me.

Step on ubuntu:

# sudo apt-get install python-pip
# sudo pip install ansible

Christian Del Pino

unread,
Feb 9, 2016, 10:54:52 AM2/9/16
to Ansible Project
That worked. Thanks!
Reply all
Reply to author
Forward
0 new messages