I have been following the ec2_elb_facts module and tried using the below example but in the debug logs i can see the aws values are completely getting ignored. How can i get this working?
- hosts: localhost
vars:
aws_access_key: accesskey
aws_secret_key: secretkey
ec2_region: us-east1
gather_facts: true
tasks:
# Gather facts about all ELBs
- action:
module: ec2_elb_facts
register: elb_facts
- action:
module: debug
msg: "{{ item.dns_name }}"
with_items: "{{ elb_facts.elbs }}"
Also, in tower how can i make sure these keys are used from encrypted file?