From df8b2d45bcd43b9b78d14c04c4740dcd6055b2b2 Mon Sep 17 00:00:00 2001 From: Bret Martin Date: Sun, 6 Sep 2015 13:18:20 -0400 Subject: [PATCH] Add network_interfaces example --- lib/ansible/modules/cloud/amazon/ec2.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/ansible/modules/cloud/amazon/ec2.py b/lib/ansible/modules/cloud/amazon/ec2.py index d9f50568866..73dd916619e 100755 --- a/lib/ansible/modules/cloud/amazon/ec2.py +++ b/lib/ansible/modules/cloud/amazon/ec2.py @@ -355,6 +355,13 @@ EXAMPLES = ''' vpc_subnet_id: subnet-29e63245 assign_public_ip: yes +# Example using pre-existing network interfaces +- ec2: + key_name: mykey + instance_type: t2.small + image: ami-f005ba11 + network_interfaces: ['eni-deadbeef', 'eni-5ca1ab1e'] + # Launch instances, runs some tasks # and then terminate them