Skip to content

Commit 6ca0abf

Browse files
committed
Fixes geerlingguy#303: Update 'Dynamic inventory with AWS' example to use aws_ec2 plugin.
1 parent dfad2cc commit 6ca0abf

File tree

8 files changed

+20
-849
lines changed

8 files changed

+20
-849
lines changed

dynamic-inventory/digitalocean/provision.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
gather_facts: False
3333

3434
tasks:
35-
- name: Wait for host to become reachable.
35+
- name: Wait for hosts to become reachable.
3636
wait_for_connection:
3737

3838
- name: Install tcpdump.

lamp-infrastructure/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ After everything is booted and configured, visit the IP address of the Varnish s
8282

8383
- Public IP addresses are used for all cross-instance communication (e.g. PHP to MySQL/Memcached communication, MySQL master/slave replication). For better security and potentially a tiny performance improvement, you can use instances' `private_ip` for cross-instance communication.
8484
- Hosting instances on AWS may incur hosting fees (unless all usage falls within AWS's first-year free tier limits). While the charges will be nominal (likely less than $1 USD for many hours of testing), it's important to destroy instances you aren't actively using!
85-
- You can use the included `ec2.py` inventory script for dynamic inventory (`./ec2.py --list` to test).
85+
- You can use the included `aws_ec2.yml` inventory plugin configuration for dynamic inventory (`ansible-inventory -i inventories/aws/aws_ec2.yml --graph` to test).
8686

8787
## About the Author
8888

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
plugin: aws_ec2
3+
4+
regions:
5+
- us-east-1
6+
7+
hostnames:
8+
- ip-address
9+
10+
keyed_groups:
11+
- key: tags.inventory_group
12+
separator: ''
13+
- key: tags.Application
14+
separator: ''

lamp-infrastructure/inventories/aws/ec2.ini

-95
This file was deleted.

0 commit comments

Comments
 (0)