ec2_facts - Gathers facts about remote hosts within ec2 (aws)

Author:Silviu Dicu <silviudicu@gmail.com>

Synopsis

New in version 1.0.

This module fetches data from the metadata servers in ec2 (aws). Eucalyptus cloud provides a similar service and this module should work this cloud provider as well.

Options

parameter required default choices comments
validate_certs no yes
  • yes
  • no
If no, SSL certificates will not be validated. This should only be used on personally controlled sites using self-signed certificates. (added in Ansible 1.5.1)

Examples


# Conditional example
- name: Gather facts
  action: ec2_facts

- name: Conditional
  action: debug msg="This instance is a t1.micro"
  when: ansible_ec2_instance_type == "t1.micro"

Note

Parameters to filter on ec2_facts may be added later.