ansible/lib/ansible
Vinay Dandekar c884d4ab7f Add support for EC2 dynamic data in ec2_facts (#21532)
* Add support for EC2 dynamic data in ec2_facts

- Flattens out JSON in the instance identity document and IAM info/credentials for easy access to facts
- This changes region fact from ‘ansible_ec2_placement_region’ to ’ansible_ec2_instance_identity_document_region’

* Maintain backwards compatibility by putting the region into the old key

* Improve JSON parsing logic and split security group IDs

* Add documentation, backwards compatibility, fix bug and formatting

- Update documentation for ec2_facts with return values
- Preserve JSON value from the metadata service for backwards compatibility
- Fix bug in fix_invalid_varnames
  - The keys in the dict were being modified in place; new dict now created to hold the sanitized keys
  - Consolidate two replace calls with a regex substitution
- Move imports for ec2_facts to the top

* Add support for parsing the IAM instance profile role
2017-06-30 16:27:49 +10:00
..
cli Fix ansible ad-hoc to respect ANSIBLE_STDOUT_CALLBACK (#26098) 2017-06-26 16:01:06 -04:00
compat ansible/compat/: PEP8 compliancy (#24689) 2017-05-18 08:36:11 +01:00
config Add persistent connection control path dir constant (#25736) 2017-06-15 11:14:43 +01:00
errors Try to show original exception info for yaml (and other) errors (#24468) 2017-06-09 13:13:15 -04:00
executor Return code is not very useful to assume a task failed 2017-06-27 15:40:27 -04:00
galaxy Transition inventory into plugins (#23001) 2017-05-23 17:16:49 -04:00
inventory Ensure hosts aren't duplicated in groups 2017-06-19 17:38:43 -04:00
module_utils Add active param to junos declarative modules (#26222) 2017-06-29 10:18:35 +05:30
modules Add support for EC2 dynamic data in ec2_facts (#21532) 2017-06-30 16:27:49 +10:00
parsing Move metadata extraction into a library function (#26198) 2017-06-28 18:10:26 -07:00
playbook Don't include dependent roles in the dep chain for include_role 2017-06-22 13:16:29 +01:00
plugins Fix synchronize setting user variable 2017-06-28 17:41:01 -07:00
template Try to show original exception info for yaml (and other) errors (#24468) 2017-06-09 13:13:15 -04:00
utils check options exist before forcing assignment 2017-06-23 15:56:43 -04:00
vars 01110000 01100101 01110000 00111000 00100000 2017-06-19 17:50:52 -04:00
__init__.py
constants.py constants: pep8 fix (#25735) 2017-06-15 13:40:06 +02:00
release.py Collated PEP8 fixes (#25293) 2017-06-02 12:14:11 +01:00