ansible/ansible — pull request #5902 by willthames (2014-02-07 12:38:46+00:00)
Title: Pick up default EC2 region from boto.config

##### Issue Type:

Feature Pull Request

##### Ansible Version:

ansible-playbook 1.5 (devel 0bc0315171) last updated 2014/02/07 22:20:33 (GMT +1000)

##### Environment:

N/A

##### Summary:
Allows users to not set region parameter in EC2 modules when they
already have `ec2_region_name` set in their boto configuration file.

This doesn't account for boto configs where e.g. RDS has one
default region and EC2 another - all regions will default to `ec2_region_name`.
However, this just changes the very last fallback for setting region rather than
having it be None.

However, this is just handy to allow an easy site wide default
region if existing configuration already relies on it.

Modules can be improved to mention this in the documentation and
turn off required=True where needed. But it works with `ec2`
and `ec2_vol` without change to those modules.

##### Steps To Reproduce:

N/A

##### Expected Results:

No actual change in functionality

##### Actual Results:

No apparent actual change in functionality of the modules I've tested