Error saying ERROR ec2 vpc subnet is not a legal parameter of an Ansible Play

0 votes

I'm trying to create a subnet using an existing VPC. This is my playbook:

---
  - hosts: local
    connection: local
    tasks:
      - name: Create subnet
        ec2_vpc_subnet:
          state: present
          vpc_id: vpc-abcd
          cidr: 10.0.3.0/24
          resource_tags:
            Name: Database Subnet
        register: database_subnet

error:

ERROR: ec2_vpc_subnet is not a legal parameter of an Ansible Play
Feb 8, 2019 in Ansible by Neel
1,007 views

1 answer to this question.

0 votes

ec2_vpc_subnet is support from Ansible version 2.0 and if you are using < 2.0 version, this won't work for you.

Update your version

sudo apt update ansible
answered Feb 8, 2019 by Dee

Related Questions In Ansible

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Ansible Error "ERROR! 'vars_files' is not a valid attribute for a PlaybookInclude"

vars_files is not supported for included playbooks ...READ MORE

answered Jun 3, 2019 in Ansible by Tara
4,761 views
+1 vote
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,924 views
0 votes
1 answer
+1 vote
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP